Skip to content

Issuing A Letsencrypt Certification For Magento2 With Nginx

How to Issue a Certificate for Magento 2 on Nginx#

  1. Follow these instructions

  2. Add to the nginx.conf.example file the location bit

  3. Run the following command, take note of the /pub directory

    sudo letsencrypt certonly -a webroot –webroot-path=/var/www/magento2/pub -d example.com -d example.com