LoginSignup
0
0

More than 3 years have passed since last update.

Nginx + Let's Encript

Posted at

SSL導入

自前でブログを立ち上げ、SSLを導入しました。

環境

  • Nginx
  • Let's Encript

証明書の取得

/usr/local/certbot/certbot-auto certonly --standalone -d [ドメイン名] -m [adminメールアドレス] --agree-tos -n

Nginxの設定

server {
     ・
     ・
     ・
    listen       443 ssl;
    server_name  localhost;
    ssl_certificate     /etc/letsencrypt/live/www.rosyoki.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/www.rosyoki.com/privkey.pem;
     ・
     ・
     ・

Nginxの再起動

# systemctl stop nginx
# systemctl start nginx

※CenbtOS7の場合です。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0