Free SSL

I tried to do a research on how to create your own Certificate Authority (CA) and issue SSL certificate for your own server, but I ended up with coming across this free service.

https://www.sslforfree.com/

I successfully implemented SSL on my own instance of Jenkins on Azure. After generating the certificate along with private key, I uploaded the files to Azure and made my change in nginx configuration file. Remember that NGINX is playing a reverse proxy role.

server {
    listen 80;
    server_name yourstuff.whicheverregion.cloudapp.azure.com;
    return 301 https://yourstuff.whicheverregion.cloudapp.azure.com;
}
server {
    listen 443 ssl;
    server_name yourstuff.whicheverregion.cloudapp.azure.com;
    ssl_certificate /etc/nginx/ssl/certificate.crt;
    ssl_certificate_key /etc/nginx/ssl/private.key;
    location / {
        proxy_set_header        Host $host:$server_port;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;
        proxy_pass          http://localhost:8080;
        proxy_redirect      http://localhost:8080 http://yourstuff.whicheverregion.cloudapp.azure.com;
        proxy_read_timeout  90;
    }
}

Nowadays, there is almost no website that doesn’t use SSL. I guess I should start to use SSL for Free to make this website more secure.

Author: admin

A software engineer in greater Seattle area

Leave a Reply

Your email address will not be published. Required fields are marked *