Posted over 4 years ago. Visible to the public.

Howto: Create a self-signed certificate

As igalic commented on this gist.

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

Explanation

req -new
Create a new request …
-newkey
… using a new key …
rsa:2048
… of type RSA, 2048 bits long.
-sha1
Make sure to use SHA1 as this certificate's hashing algorithm,
-nodes
don't encrypt the key and
-x509
make it an X.509 certificate, not a Certificate Signing Request.
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Author of this card:

Avatar
Dominik Schöler
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandropedia