I've created a local yum mirror on a host inside my network. The reposync is working correctly but when I attempt to connect to the local mirror I get the following error.
[root@localhost tmp]# yum repolist
Loaded plugins: changelog, downloadonly, presto, refresh-packagekit, rhnplugin, security, tmprepo, verify, versionlock
The certificate /usr/share/rhn/ULN-CA-CERT is expired. Please ensure you have the correct certificate and your system time is correct.
the time is synced to a local NTP server so I know that is not the issue.
I believe it's related to /etc/sysconfig/rhn/up2date
specifically the following stanzas
serverURL[comment]=Remote server URL (use FQDN)
serverURL=https://local_repo/XMLRPC
sslCACert[comment]=The CA cert used to verify the ssl server
sslCACert=/usr/share/rhn/ULN-CA-CERT