|
How to setup godaddy SSL certificate on Nginx
1. Generate SSL requestFirst create key, replace "mysite.com" with your site domain name.openssl genrsa -out www.mysite.com.key 2048then the request, openssl req -new -key www.mysite.com.key -out www.mysite.com.csrthat command will prompt a few questions, like below
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) []:Your town
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Your Corporation
Organizational Unit Name (eg, section) []:IT
Common Name (eg, YOUR name) []:www.mysite.com
Email Address []:someone@mysite.com
the Common Name is the most important field, that should be the exact domain name for which you are requesting SSL, in most cases, it should be "www.mysite.com". If you are buying for a subdomain, then it should be something like "secured.mysite.com". If for wildcard, it should be "*.mysite.com". After you finish, you should have 2 files now, www.mysite.com.key and www.mysite.com.csr. 2. Buy the SSL on GodaddyNow goto godaddy's site, and buy the ssl. If it's for a new website, I highly recommend to buy just one year version first. Their cheapest one is just $19.99/year. The reason is you never know if the new site is going to work out or not, or you may need to create secured subdomains a few months later. Because of all these uncertainties, it's better just to pay a tad more for one year only.The process of buying SSL is quite involved:
3. Install SSL on NginxGodaddy email you the zip file contains 2 files: www.mysite.com.crt and gd_bundle.crt. You need to combine both files into one file, with your domain ssl file on top. so unzip the zip file and combine them.cat www.mysite.com.crt gd_bundle.crt > mysite_combined.crtIf you don't combine them, browser will not be able to verify certificate authority (CA), and popup dialog or warning messages, which will certainly scare your site visitors away. Now copy both combined crt and www.mysite.com.key files to your ssl folder on the server, and edit your nginx.conf
server {
listen 443;
server_name www.mysite.com;
ssl on;
ssl_certificate /your/ssl/folder/mysite_combined.crt;
ssl_certificate_key /your/ssl/folder/www.mysite.com.key;
...
}
then reload the processes to make the change take effect. /etc/init.d/nginx reloadThat's it. Referencehttp://wiki.codemongers.com/NginxHttpSslModule http://blog.imperialdune.com/2007/3/31/setting-up-godaddy-turbo-ssl-on-nginx
Views: 36004
Replies: 1
Last Reply:
davidde,
11/19.
Tags:
ssl
comments
|
Tags moneywill |
||||||||