1
0

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.

秘密鍵と自己署名証明書をopensslのコマンド1行で作成する方法

Posted at

ウェブで検索してもなかなか見つからないので、備忘録として書いておく。

以下のコマンドで、パスフレーズなし秘密鍵と自己署名証明書を一度に作れる。引数の値は適宜変えること。

openssl req -newkey rsa:4096 -nodes -keyout example.key -x509 -days 3650 -subj "/C=JP/L=City/O=Organization" -out example.crt
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?