环境如下
Ubuntu 16.04, Apache2 (阿里云)
工具如下
https://certbot.eff.org/#ubuntuxenial-apache
命令如下:
$ apt install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-apache
$ certbot --apache
in this step, you need enter
1. domain name
2. your email
3. Agree the service term
4. share your email to subscribe or not
5. make a choice:
1. easy way:both http and https are required
2. secure way:all requests will be redirect to https
finall, you can test your domain at here
https://www.ssllabs.com/ssltest/analyze.html