Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 434 Bytes

File metadata and controls

15 lines (13 loc) · 434 Bytes
aliases author date tags title
/2007/08/02/generate-self-signed-certificate-and-key-in-one-line/
Major Hayden
2007-08-02 19:48:25 -0700
web
Generate self-signed certificate and key in one line

If you need a quick self-signed certificate, you can generate the key/certificate pair, then sign it, all with one openssl line:

openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt