# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.cat.net
* epel: ftp.iij.ad.jp
* extras: mirrors.cat.net
* remi-safe: ftp.riken.jp
* updates: mirrors.cat.net
Package httpd-2.4.6-88.el7.centos.x86_64 already installed and latest version
Nothing to do
※インストール済の場合はこうなる
Let’s Encrypt(無料SSL証明書生成ツール)のインストール
# yum install certbot python2-certbot-apache
Let’s Encrypt で証明書作成
前提:事前に証明書を取得するサーバにドメインが設定されている事(名前が引けるようになっている事)
以下はこのサイトの証明書を取ったときの例。
・80ポートを使うのでWebサーバが動いている場合は停止する
# service httpd stop
# certbot certonly --standalone -t --register-unsafely-without-email
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'
to cancel): www.ukkari-san.net ※取得するサイトのドメインを入力
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.ukkari-san.net
Waiting for verification...
Cleaning up challenges
Resetting dropped connection: acme-v02.api.letsencrypt.org
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/www.ukkari-san.net/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/www.ukkari-san.net/privkey.pem
Your cert will expire on 2019-07-24. 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
コメント