在 Amazon ec2 中设置 GoDaddy SSL
Setup GoDaddy SSL in Amazon ec2
Apache 版本 Apache/2.4.12(亚马逊)OpenSSL/1.0.1k-fips PHP/5.6.8
我有弹性 IP Amazon ec2-user 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 support is enabled
我试过 运行宁: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.crt
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 方法。
Apache 版本 Apache/2.4.12(亚马逊)OpenSSL/1.0.1k-fips PHP/5.6.8
我有弹性 IP Amazon ec2-user 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 support is enabled
我试过 运行宁: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.crt
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 方法。