Date

Hello!

I know 2 ways of getting free SSL certificate for your own web page.

Previously I was using StartSSL, it's free for a single domain usage:

https://www.startssl.com/

Now I moved to Let's Encrypt project:

https://letsencrypt.org/

And, of course, Nginx config is extra clean and friendly:

server {
    listen                  your-ip-here:80;
    server_name             agrrh.com www.agrrh.com;
    rewrite ^(.*)           https://$server_name$1 permanent;
}

server {
    listen                  your-ip-here:443 ssl;
    ...
    ssl_certificate         /path/to/certificate/file;
    ssl_certificate_key     /path/to/private/key/file;
    ...
}

Don't forget to restart and enjoy the green SSL sign in the address bar. :)

Afterwards just renew it once in a 3-4 months like this:

/etc/init.d/nginx stop

./letsencrypt-auto renew

# increment number in nginx config after fullchain and privkey by 1

/etc/init.d/nginx start

Comments

comments powered by Disqus