LoginSignup
23
17

More than 5 years have passed since last update.

オレオレ証明書・秘密鍵・CSR全部まとめて作るワンライナー

Posted at

よく忘れるっていうか覚えられないので。

openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj "/C=JP/ST=Hokkaido/L=Sapporo/O=Example INC./OU=IT Department/CN=example.com" && openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

subj,daysは適宜変更する。

23
17
2

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
23
17