Ssl – Self-signed Cert for yum repository server

centos7redhatrepositorysslyum

Can I use Self-signed Cert for local yum repository server?

The problem is when a client i sdoing a yum update via my repository server, it shows

[Errno 14] curl#60 – "Peer's certificate issuer has been marked as not trusted by the user."

Is there anyway that I can connect to the repository server via HTTPS (port 443) rather than port 80?

Thanks!!!

Best Answer

Importing ca-certificate chain (.crt) - RHEL7

Copy the cert to /etc/pki/ca-trust/source/ and run update-ca-trust extract

If you had an existing PKI to deploy this with like Red Hat Certificate System, use that instead.