此内容没有您所选择的语言版本。
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:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
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
# 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.