10.3.3. Reusing the Certificate
Whether the certificate is properly signed or not, the certificate and the key must be the same on all node hosts. When the key and the certificate to use have been created, copy the key to
/etc/pki/tls/private/localhost.key
and copy the certificate to /etc/pki/tls/certs/localhost.crt
on all node hosts.
Next, configure the correct permissions and context with the following commands:
#chmod 400 /etc/pki/tls/private/localhost.key /etc/pki/tls/certs/localhost.crt
#chown root:root /etc/pki/tls/private/localhost.key /etc/pki/tls/certs/localhost.crt
#restorecon /etc/pki/tls/private/localhost.key /etc/pki/tls/certs/localhost.crt
Restart the
httpd
service on each node host after modifying the key and the certificate.