2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 02:10:23 +00:00

Comment KeyFile instead of replacing as key is included in CertFile

This commit is contained in:
Samveen Gulati
2017-08-25 13:06:41 +00:00
parent d722f581ac
commit 53ce4c6992

View File

@ -63,7 +63,7 @@ The steps to configure the certificate for https server: ::
export sslcfgfile=/etc/apache2/sites-enabled/ssl.conf # ubuntu
sed -i 's/^\(\s*\)SSLCertificateFile.*$/\1SSLCertificateFile \/etc\/xcat\/cert\/server-cred.pem/' $sslcfgfile
sed -i 's/^\(\s*\)SSLCertificateKeyFile.*$/\1SSLCertificateKeyFile \/etc\/xcat\/cert\/server-cred.pem/' $sslcfgfile
sed -i 's/^\(\s*SSLCertificateKeyFile.*\)$/#\1/' $sslcfgfile
service httpd restart # rhel
service apache2 restart # sles/ubuntu