问题
Hello I'm trying to install my SSL certificate from GoDaddy, I expended a lot of days on this but I couldn't install it.
I modify the ssl.conf and I put this lines:
SSLEngine on
SSLCertificateFile /etc/httpd/conf/GODADYCERT.crt
SSLCertificateKeyFile /etc/httpd/conf/private.key
SSLCertificateChainFile /etc/httpd/conf/gd_bundle-xxxx.crt
But when I restart httpd service, can't restart.
Any can help me?
回答1:
- Ensure that you have installed mod_ssl and it is running.
- Upload your certificates on Instance say /home/ec2-user/ssl
- Edit /etc/httpd/conf.d/ssl.conf
check for lines and replace accordingly, listed below
- SSLCertificateFile Location.crt
- SSLCertificateKeyFile Location.key
- SSLCACertificateFile Location.crt
Restart Apache
来源:https://stackoverflow.com/questions/43441509/aws-ec2-install-ssl-certificate-from-godaddy