[root@dns letsencrypt]# ./letsencrypt-auto --apache -d hanwein.com.tw -d www.hanwein.com.tw
Upgrading certbot-auto 0.20.0 to 0.21.1... Replacing certbot-auto... Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Obtaining a new certificate Performing the following challenges: http-01 challenge for hanwein.com.tw http-01 challenge for www.hanwein.com.tw Waiting for verification... Cleaning up challenges Created an SSL vhost at /etc/httpd/sites-available/www.hanwein.com.tw-le-ssl.conf Deploying Certificate for hanwein.com.tw to VirtualHost /etc/httpd/sites-available/www.hanwein.com.tw-le-ssl.conf Enabling site /etc/httpd/sites-available/www.hanwein.com.tw-le-ssl.conf by adding Include to root configuration Deploying Certificate for www.hanwein.com.tw to VirtualHost /etc/httpd/sites-available/www.hanwein.com.tw-le-ssl.conf Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. ------------------------------------------------------------------------------- 1: No redirect - Make no further changes to the webserver configuration. 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration. ------------------------------------------------------------------------------- Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1 ------------------------------------------------------------------------------- Congratulations! You have successfully enabled https://hanwein.com.tw and https://www.hanwein.com.tw You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=hanwein.com.tw https://www.ssllabs.com/ssltest/analyze.html?d=www.hanwein.com.tw ------------------------------------------------------------------------------- IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/hanwein.com.tw/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/hanwein.com.tw/privkey.pem Your cert will expire on 2018-05-13. To obtain a new or tweaked version of this certificate in the future, simply run letsencrypt-auto again with the "certonly" option. To non-interactively renew *all* of your certificates, run "letsencrypt-auto renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le