Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (20 loc) · 617 Bytes

ssl.md

File metadata and controls

32 lines (20 loc) · 617 Bytes

SSL証明書

鍵生成用のディレクトリ作成

mkdir nginx/ssl

秘密鍵の作成

sudo openssl genrsa -out nginx/ssl/server.key 2048

ドメインが決まっているなら「Common Name」だけ入力

CSR(証明書署名要求)の作成

sudo openssl req -new -key nginx/ssl/server.key -out nginx/ssl/server.csr
sudo openssl x509 -days 3650 -req -signkey nginx/ssl/server.key -in nginx/ssl/server.csr -out nginx/ssl/server.crt

CRT(SSLサーバ証明書)の作成

key chain accessに登録

https://www.curict.com/item/2a/2ace791.html