service httpd stop
[root@ali3 letsencrypt]# ./certbot-auto certonly --force-renew --cert-name bingxin.com.tw
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
-------------------------------------------------------------------------------
1: Apache Web Server plugin - Beta (apache)
2: Spin up a temporary webserver (standalone)
3: Place files in webroot directory (webroot)
-------------------------------------------------------------------------------
Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1
Plugins selected: Authenticator apache, Installer None
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'
to cancel): bingxin.com.tw www.bingxin.com.tw
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for bingxin.com.tw
http-01 challenge for www.bingxin.com.tw
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/bingxin.com.tw/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/bingxin.com.tw/privkey.pem
Your cert will expire on 2018-05-07. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
"certbot-auto renew"
service httpd start