What is Letsencrypt !
Letsencrypt is platform that providing free ssl certificate
What is Certbot
Certbot is open source command line tool for generating ssl certificate.
Adding new certificate
sudo certbot certonly --standalone -d example.com
for nginx
sudo certbot --nginx
for apache
sudo certbot --apache
Unless you don't use additional --certonly parameter, certbot will replace nginx and apache configuration
Renewing certiticates
Letsencrypt certificates have default 3 months expire date. we need to renew certificates periodically, otherwise website might have availability problems due to expired certificate
sudo certbot renew
List Certificates
sudo certbot certificates
Message length should be less than 1024 character!