2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-04 15:32:31 +00:00

Merge pull request #3780 from samveen/apidocfix

Comment KeyFile instead of replacing as key is included in CertFile
This commit is contained in:
chenglch
2017-10-27 04:31:10 -05:00
committed by GitHub

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