Skip to content

Instantly share code, notes, and snippets.

@marcy-terui
Created May 1, 2015 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcy-terui/69614f137b54b8df9303 to your computer and use it in GitHub Desktop.
Save marcy-terui/69614f137b54b8df9303 to your computer and use it in GitHub Desktop.
オレオレ証明書・秘密鍵・CSR全部まとめて作るワンライナー ref: http://qiita.com/Marcy/items/2f63d7f170ff82531245
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment