Obtaining a SSL Certificate via LetsEncrypt.org on FreeBSD

This tutorial assumes you have successfully installed the following:

  • FreeBSD system
  • Apache server
  • certbot client
  • you have sudo privileges from the command line

To obtain a SSL certificate via the webroot method or to renew a specific web domain:

$ sudo certbot certonly --webroot -w /full/path/to/site/directory -d yourdomain.com -d www.yourdomain.com

To test** automatic renewal for all certificates:

$ sudo certbot renew --dry-run

**Testing will NOT renew your certificates!

To renew ALL certificates:

$ sudo certbot renew

To check the status of all your certificates:

$ sudo certbot certificates

After renewing any certificates, remember to gracefully restart the Apache server:

$ sudo apachectl graceful