CentOS下更换https证书

Change ssl key with apache

1. go to /etc/pki/tls/certs
2. make mycert.pem
3. Enter the information about country,state,city,host name etc, your certificate and key has been created .
4.Split mycert.pem into server.crt with CERTIFICATE and server.key with RSA PRIVATE KEY.
5. now go to /etc/httpd/conf.d/ssl.conf and change..
SSLCACertificateFile /etc/pki/tls/certs/server.crt
SSLCACertificateKeyFile /etc/pki/tls/server.key
6. save changes.
7. on shell prompt service httpd start

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):