I have used this guide for installing lets encrypt on my sites. I wanted to handle everything by hand because my nginx is not in it’s default form so I had lots of errors when I used certbot!
Now I am removing everything about this domain: “sarirapp.com”
and reinstall lets encrypt on it.
I have done these steps:
1- I removed old files about sarirapp.com on /etc/letsencrpt
2- letsencrypt certonly -a webroot --webroot-path=/var/sarir/sarirapp.com/public/ -d sarirapp.com
3- (I already have this so I did not run it again) sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
4- sudo nano /etc/nginx/snippets/ssl-sarirapp.com.conf
and paste:
ssl_certificate /etc/letsencrypt/live/sarirapp.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/sarirapp.com/privkey.pem;
5- nano /etc/nginx/ites-available/sarirapp.conf
paste:
listen 443 ssl http2;
include snippets/ssl-sarirapp.com.conf;
include snippets/ssl-params.conf;
Now I have https on sarirapp.con on the same server. Is everything ok?