This article is dedicated to Junjiang, a member in LowEndTalk.
- Generating the CSR
- Ordering at Centrio Host
- Put the coupon : LET2SSL
- Confirming the email
- Receiving the email
In the received email, we would have some long line with the code like bellow :
1 2 3 4 5 6 7 8 9 10 11 12 |
MUST BE INSTALLED ON YOUR WEB SERVER: Your SSL Certificate (Formatted for the majority of web server software including IIS and Apache based servers): -----BEGIN CERTIFICATE----- MIIEwjCCA6qgAwIBAgISESG0oF5qDhFRTOer2K4ezFMvMA0GCSqGSIb3DQEBBQUA k6zVnkLbO61NznKk7OqVHYS+ZHpo6g== -----END CERTIFICATE----- Intermediate Certificate: -----BEGIN CERTIFICATE----- MIIELzCCAxegAwIBAgILBAAAAAABL07hNwIwDQYJKoZIhvcNAQEFBQAwVzELMAkG +MPpZqmyIJ3E+LgDYqeF0RhjWw== -----END CERTIFICATE----- |
Copy paste the line from the SSL Certificate and the Intermediate Certificate into one file, for example the file is /etc/ssl/httpd/erawan.me.crt :
1 2 3 4 5 6 7 8 |
-----BEGIN CERTIFICATE----- MIIEwjCCA6qgAwIBAgISESG0oF5qDhFRTOer2K4ezFMvMA0GCSqGSIb3DQEBBQUA k6zVnkLbO61NznKk7OqVHYS+ZHpo6g== -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIELzCCAxegAwIBAgILBAAAAAABL07hNwIwDQYJKoZIhvcNAQEFBQAwVzELMAkG +MPpZqmyIJ3E+LgDYqeF0RhjWw== -----END CERTIFICATE----- |
Configure the Nginx
Because I’m using Minstall for configuring my vps, the Nginx configuration would be at /etc/nginx/host.d/erawan.me.conf :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
server { listen 443 ssl; server_name erawan.me; ssl_certificate /etc/ssl/http/erawan.me.crt; ssl_certificate_key /etc/ssl/http/erawan.me.key; access_log off; error_log /home/erawan/http/logs/erawan.me.log; index index.html index.php; root /home/erawan/http/erawan.me; try_files $uri $uri/ /index.php; client_max_body_size 2000M; include /etc/nginx/conf.d/cache.conf; include /etc/nginx/conf.d/deny.conf; include /etc/nginx/php.d/erawanarifn.conf; } |
Restart the Nginx, and it’s all done 🙂
Thanks to CentrioHost for providing the cheap Wildcard AlphaSSL
Thank you very much.
You’re welcome 🙂