Generating a self-signed SSL Certificate, commands only

If you need to quicly create self-signed dummy SSL cert, those are the commands.


This post is one of those quick notes to myself, so I can stop searching this info everytime I need it. This is the sequence of commands to create a self-signed SSL certificate. If you need to know what you are doing please go read this post.

I suggest you to paste them one by one, and by you I mean the future me, that will try to paste them all at once and do something stupid.

    openssl genrsa -des3 -out server.key 1024
    openssl req -new -key server.key -out server.csr
    cp server.key server.key.org
    openssl rsa -in server.key.org -out server.key
    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

cya.

 
comments powered by Disqus