【问题标题】:Setup GoDaddy SSL in Amazon ec2在 Amazon ec2 中设置 GoDaddy SSL
【发布时间】:2015-08-06 18:45:02
【问题描述】:

Apache 版本 Apache/2.4.12 (Amazon) OpenSSL/1.0.1k-fips PHP/5.6.8

我有弹性 IP Amazon ec2-user Linux,免费层。

我有 Godaddy SSL。

我有指向 Amazon Route 53 主机区域的 Godaddy 域 (kenn.com)

我试图打开它运行良好的网站。指向没有问题。


我已经有了这些文件:

我运行这个命令:openssl req -new -newkey rsa:2048 -nodes -keyout kenn.com.key -out kenn.csr

生成此文件:kenn.com.keykenn.csr

我从 kenn.csr 生成的 Godaddy 下载了 SSL 文件:4262b7fc267ecb1b.crtgd_bundle-g2-g1.crt


OpenSSL 支持已启用

我试过跑步:sudo yum install mod_ssl

错误:

[root@ip-xxx-xx-xx-xxx my-ssl-certifications]# sudo yum install mod_ssl
Error: httpd24 conflicts with httpd-2.2.29-1.5.amzn1.x86_64
Error: mod24_ssl conflicts with 1:mod_ssl-2.2.29-1.5.amzn1.x86_64
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.5.amzn1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
  • 我不知道如何检查 mod_ssl 是否正常工作

a.) SSLCertificateFile /home/ec2-user/site.com.crt

b.) SSLCertificateKeyFile /home/ec2-user/site.key

c.) SSLCACertificateFile /home/ec2-user/gd_bundle.crt

  • 我不知道如何编辑这个/etc/httpd/conf.d/ssl.conf

它必须指向我的文件,对吗?我在哪里可以得到site.com.crt

b.是kenn.com.key

c。是gd_bundle-g2-g1.crt

一个。是什么?????????

还有两个文件4262b7fc267ecb1b.crtkenn.csr它们是干什么用的?

参考:http://jafty.com/blog/installing-godaddy-ssl-certificate-on-amazon-ec2/

更新: 我跑:sudo service httpd restart

[root@ip-172-31-41-181 ec2-user]# sudo service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Tue May 26 01:32:17.041564 2015] [alias:warn] [pid 11944] AH00671: The Alias directive in /etc/httpd/conf.d/phpmyadmin.conf at line 15 will probably never match because it overlaps an earlier Alias.
[Tue May 26 01:32:17.041673 2015] [alias:warn] [pid 11944] AH00671: The Alias directive in /etc/httpd/conf.d/phpmyadmin.conf at line 16 will probably never match because it overlaps an earlier Alias.
                                                           [  OK  ]

但是当我访问https://ken.com

上面写着This webpage is not available

【问题讨论】:

  • 如果不知道密钥的格式以及实例的配置方式,真的很难回答
  • 听起来好像是 mod ssl 可能已经安装了,你可能误解了那一步。输入 sudo httpd -t 来测试你的语法,然后 httpd start 看看它是否会以你当前的配置开始。
  • @scrowler 更新:我运行:sudo service httpd restart,导致更新问题-
  • 遇到同样的问题,解决这个问题

标签: linux apache ssl amazon-web-services amazon-ec2


【解决方案1】:

去亚马逊。

然后是 EC2。

单击安全组。

添加 HTTPS 方法。

【讨论】:

  • 这就是它所缺少的,谢谢!它现在工作:D
猜你喜欢
  • 2015-07-29
  • 1970-01-01
  • 1970-01-01
  • 2023-03-31
  • 2013-02-25
  • 2014-10-30
  • 1970-01-01
  • 2020-07-28
  • 2011-07-15
相关资源
最近更新 更多