Generating LetsEncrypt SSL - Bleckmann New Custom URL

From Apoyar Wiki
Jump to navigation Jump to search

Generating Letsencrypt SSL Manually


- Login to server

- Create new nginx .conf file for new custom URL

- Create simlink for newly added .conf file to sites-enabled folder

ln -s /etc/nginx/sites-available/.conf /etc/nginx/sites-enabled/

Then we need to generate SSL for newly added custom URL

- Run below command with appropritae information

certbot renew --webroot  /var/www/html -d domainname

this will genearte .pem and .key files with path.

- go to /etc/nginx/sites-available/

- Open newly added custom URL .conf file and update .pem and .key files path

- check the nginx syntax with below command

nginx -t

if all error and warning are zero, then reload nginx

service nginx reload

now new custom URL should be running with free letsencrypt SSL, valid for next 90 days.