Conoha Centos7 無料SSL letsencrypt 導入
WWWサーバはできたので、無料のSSLを導入してみる。 公式サイト https://letsencrypt.jp/ 公式サイトにあったCentos7の手順 sudo yum install epel-release sudo yum install certbot python-certbot-apache apacheじゃないならpython-certbot-apacheはいらないとのこと。 実際やってみましょう。というかこの次何? 手順 1.インストール sudo yum install certbot 2.コマンドを入力 sudo certbot certonly --webroot --webroot-path /var/www/html/ -d example.jp -d www.example.jp メールアドレスを聞かれるので入力。 3.webサーバがうごいてるとだめなそーなので。 webroot webroot-pathを指定してると動いていてもいけると書いてあるのですが。。。。 sudo systemctl stop nginx もう一度 2のコマンドを投入 4.443が開いてねーぞってことなので、iptables修正して再度 2のコマンドを投入 5.止めたwebサーバを起動 sudo systemctl start nginx 6.それっぽくちゃんとSSLの設定をする。 # Settings for a TLS enabled server. # server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; server_name _; ...