Linuxsimba.com is now behind a Nginx SSL Proxy.
I have always been confused by SSL Nginx configuration. So here’s is what I did to get it working.
Create the Certificate
My service provider gives me a free SSL certificate for the website.
First create the Certificate Request.
openssl req -nodes -newkey rsa:2048 -sha256 -keyout linuxsimba.key -out linuxsimba.csr
Remember to save the SSL private key !!
Why not use 4096 bit certificate? Here is a blog post that shows a 2048 bit certificate is good enough.
Upload the CSR to the Certificate Request form
The service provider had a Certificate Request form where I could upload the linuxsimba.csr
file.
After an hour the SSL certificate creation was complete. The service provider SSL web page offered 2 certificates for download. There were:
- Server Certificate
- Intermediary Certificate
Intermediary Certificate?? Its a certificate that verifies that your certificate is legit. It creates what the industry calls a certificate chain. Here is what linuxsimba.com’s certificate chain looks like.
**SSL Command:** | ``openssl s_client -showcerts -connect linuxsimba.com:443`` |
**Output:** | [OpenSSL s_client output](https://gist.github.com/linuxsimba/3d9f504c4757bc971bc2e89a56a81273) |