Apache Version Apache / 2.4.12(Amazon)OpenSSL / 1.0.1k -fips PHP / 5.6.8
我有Elastic IP Amazon ec2用户Linux,免费套餐。
我有Godaddy SSL。
我有Godaddy Domain(kenn.com)指向亚马逊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
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
℃。是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
答案 0 :(得分:2)
前往亚马逊。
然后EC2。
单击安全组。
添加HTTPS方法。