简体   繁体   English

AWS EC2从Godaddy安装SSL证书

[英]aws EC2 install SSL certificate from Godaddy

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. 您好,我正在尝试从GoDaddy安装我的SSL证书,为此花了很多时间,但无法安装。

I modify the ssl.conf and I put this lines: 我修改了ssl.conf,并输入了以下内容:

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. 但是当我重新启动httpd服务时,无法重新启动。

Any can help me? 有什么可以帮助我的吗?

  • Ensure that you have installed mod_ssl and it is running. 确保已安装mod_ssl并且它正在运行。
  • Upload your certificates on Instance say /home/ec2-user/ssl 将您的证书上传到实例,例如/ home / ec2-user / ssl
  • Edit /etc/httpd/conf.d/ssl.conf 编辑/etc/httpd/conf.d/ssl.conf
  • check for lines and replace accordingly, listed below 检查行并进行相应的替换,如下所示

    • SSLCertificateFile Location.crt SSLCertificateFile Location.crt
    • SSLCertificateKeyFile Location.key SSLCertificateKeyFile Location.key
    • SSLCACertificateFile Location.crt SSLCACertificateFile Location.crt
  • Restart Apache 重新启动Apache

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM