Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: Spin up a temporary webserver (standalone) 2: Place files in webroot directory (webroot) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
这里进行网站的身份验证,简单来说就是检查你要开通SSL的网站是否归你。
启用一个临时的Web服务器;
将文件放在网站根目录中。
由于我的Web服务部署在本地,所以我选2。
1 2 3
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2 Plugins selected: Authenticator webroot, Installer None Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel):
在这里输入你的域名,这里以www.ussr.gov为例。
1 2 3 4 5
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel): www.ussr.gov Obtaining a new certificate Performing the following challenges: http-01 challenge for www.ussr.gov Input the webroot for www.ussr.gov: (Enter 'c' to cancel):
在这里输入网站的根目录。Apache2的默认网站根目录是/var/www/html。
1
Waiting for verification...
然后就会提示这样的信息,稍等片刻就能返回结果。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Waiting for verification... Cleaning up challenges
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/www.ussr.gov/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/www.ussr.gov/privkey.pem Your cert will expire on 2018-01-26. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot 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