22
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

オレオレ証明書の作成

Posted at

#オレオレ証明書の作成

opensslを利用し、オレオレ証明書を作成する。

##1. 秘密鍵の作成
2048bitの秘密鍵を作成する。

openssl genrsa -des3 -out server.key 2048

##2. 証明書署名要求の作成

コマンド入力後、設定を聞かれるがオレオレ証明書のため、適当でOK。

openssl req -new -key server.key -out server.csr

##3. パスフレーズ解除
起動するたびにパスフレーズを聞かれるのでパスフレーズを解除する。

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

##4. サーバ証明書の発行

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
22
24
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
22
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?