繁体   English   中英

在Amazon EC2中设置GoDaddy SSL

[英]Setup GoDaddy SSL in Amazon ec2

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

我有弹性IP Amazon ec2用户Linux,免费层。

我有Godaddy SSL。

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

我试图打开完美运行的网站。 指向没有问题。


我已经有以下文件:

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

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

我从kenn.csr生成的Godaddy下载了SSL文件: 4262b7fc267ecb1b.crt gd_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

kenn.com.key

C。 gd_bundle-g2-g1.crt

一种。 是什么????????

还有两个文件4262b7fc267ecb1b.crt kenn.csr它们是kenn.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

去亚马逊。

然后是EC2。

单击安全组。

添加一个HTTPS方法。

暂无
暂无

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

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