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:
@ -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
|
||||
|
Reference in New Issue
Block a user