Skip to content

Instantly share code, notes, and snippets.

@sedouard
Created April 23, 2015 17:15
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 sedouard/35bdeda9fec39c697dc0 to your computer and use it in GitHub Desktop.
Save sedouard/35bdeda9fec39c697dc0 to your computer and use it in GitHub Desktop.
# Generate the private key
openssl genrsa -des3 -out server.key 1024
Generating RSA private key, 1024 bit long modulus
.........................................................++++++
........++++++
e is 65537 (0x10001)
Enter PEM pass phrase:
Verifying password - Enter PEM pass phrase:
# Generate the certificate signing request
openssl req -new -key server.key -out server.csr
Country Name (2 letter code) [GB]:CH
State or Province Name (full name) [Berkshire]:Bern
Locality Name (eg, city) [Newbury]:Oberdiessbach
Organization Name (eg, company) [My Company Ltd]:Akadia AG
Organizational Unit Name (eg, section) []:Information Technology
# NOTE: Be sure to put a * here to make sure all of your deis apps fall under this cert
Common Name (eg, your name or your server's hostname) []:*.YOURDEISCLUSTERDNS.com
Email Address []:martin dot zahn at akadia dot ch
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
# Remove the passphrase from the key
<p class="courier">cp server.key server.key.org
openssl rsa -in server.key.org -out server.key</p>
# The newly created server.key file has no more passphrase in it.
-rw-r--r-- 1 root root 745 Jun 29 12:19 server.csr
-rw-r--r-- 1 root root 891 Jun 29 13:22 server.key
-rw-r--r-- 1 root root 963 Jun 29 13:22 server.key.org
# Generate the self-signed certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Signature ok
subject=/C=CH/ST=Bern/L=Oberdiessbach/O=Akadia AG/OU=Information
Technology/CN=public.akadia.com/Email=martin dot zahn at akadia dot ch
Getting Private key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment