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

Printed from: http://rackerhacker.com/2007/08/02/generate-self-signed-certificate-and-key-in-one-line/ .
© Major Hayden 2012.

Trackbacks/Pingbacks

  1. Racker Hacker » FTP, Security » Adding SSL encryption to vsftpd
  2. Requiring SSL encryption for Wordpress administration | Racker Hacker

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this