|
楼主 |
发表于 2012-10-9 13:55:03
|
显示全部楼层
Godaddy SSL证书安装到第三方主机或VPS设置教程
注意: SSL需要独立Ip,所以一定要准备好一个独立Ip候着!
首先,根据你服务器的版本不同,选择不同的方法,总教程页面在:
http://support.godaddy.com/help/article/5343/generating-a-certificate-signing-request
根据你的服务器的版本不同,具体的教程也不同,举例子说,Apahce2.x的教程在此:
http://support.godaddy.com/help/article/5269/generating-a-certificate-signing-request-csr-apache-2x
如果你的主机使用的是cPanel,那么你使用的肯定是apache 2.x了。
那么这里我们就按照apache的例子,给大家说明下步骤,其他都差不多:
首先进入你的Linux的服务器SSH,使用root登陆,登陆后执行如下命令:- openssl req -new -newkey rsa:2048 -nodes -keyout taohost.net.key -out taohost.net.csr
复制代码 输入命令后会得到如下信息:
Generating a 2048 bit RSA private key
...........................................+++
.............+++
writing new private key to 'taohost.net.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
----- 下面开始按照提示输入信息
Country Name (2 letter code) [XX]:CN
State or Province Name (full name) []:GuangDong
Locality Name (eg, city) [Default City]:ShenZhen
Organization Name (eg, company) [Default Company Ltd]:Taohost INC
Organizational Unit Name (eg, section) []:Sales
Common Name (eg, your name or your server's hostname) []:taohost.net
Email Address []:webmaster@taohost.net
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:Taohost888
An optional company name []:Taohost
输入完毕后,输入ls命令,可以看到你域名的csr文件,然后用nano打开后复制里边的内容,到Godaddy正常申请证书,填入CSV,就ok了。
root@ip-50-63-1-1[~]# ls
./ .bash_logout .bashrc taohost.net.csr perl5/ public_html/
../ .bash_profile .rnd taohost.net.key public_ftp/
root@ip-50-63-1-1 [~]# nano taohost.net.csr
root@ip-50-63-1-1 [~]#
完毕后点finish即可。
*******这之后是大概12-48小时的等待,等待Godaddy发行证书。。。。。。。*******
当收到Godaddy的邮件Your SSL Certificate Has Been Issued时,证明你的证书已经批准啦。如果收到其他邮件,要根据邮件的情况来处理。一般只有资料不正确的时候才会有问题!
接下来按照邮件的说明,登陆SSL证书管理页面,https://certs.godaddy.com/ccp/home.seam?cid=781200,点击进入下载Download证书,到服务器安装即可。
教程在:http://support.godaddy.com/help/ ... rtificate-in-apache
|
|