ブログページをSSL化

安全のためにブログページをSSL化しておくぴか
Let’s encrypt
っていうのを使ったら良さそうぴか
ひとまず公式ページの通りにコマンドをうつぴか

sudo apt-get install certbot python-certbot-apache
sudo certbot --apache

途中で
1.通知用のメールアドレス入力
2.利用事項の承認(Y)
3.ニュースメールの可否(N)
4.ドメイン名入力
を求められたぴか

自宅で試してるだけだからDDNSとしてtplinkdns.com使ってたけどうまくいかないから https://www.noip.com/ ってとこでDDNS設定したぴか
サブドメインが〜.ddns.netが無料だったぴか

sudo certbot renew --dry-run

途中http使うかhttpsだけにするか聞かれたぴか
ぴゃーはhttpsリダイレクトにしといたぴか


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.


https://〜
でアクセスしたらちゃんとアクセスできたぴか!

コメント

タイトルとURLをコピーしました