Created
October 11, 2012 17:58
-
-
Save saltnlight5/3874334 to your computer and use it in GitHub Desktop.
SSL certs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.thegeekstuff.com/2009/07/linux-apache-mod-ssl-generate-key-csr-crt-file | |
# openssl genrsa -des3 -out www.thegeekstuff.com.key 1024 | |
Generating RSA private key, 1024 bit long modulus | |
.......................................++++++ | |
...................................................++++++ | |
e is 73547 (0x01001) | |
Enter pass phrase for www.thegeekstuff.com.key: | |
Verifying - Enter pass phrase for www.thegeekstuff.com.key: | |
# ls -ltr www.thegeekstuff.* | |
-rw-r--r-- 1 root root 963 Jun 13 20:26 www.thegeekstuff.com.key | |
# openssl req -new -key www.thegeekstuff.com.key -out www.thegeekstuff.com.csr | |
Enter pass phrase for www.thegeekstuff.com.key: | |
You are about to be asked to enter information that will be incorporated | |
into your certificate request. | |
What you are about to enter is what is called a Distinguished Name or a DN. | |
There are quite a few fields but you can leave some blank | |
For some fields there will be a default value, | |
If you enter '.', the field will be left blank. | |
----- | |
Country Name (2 letter code) [GB]:US | |
State or Province Name (full name) [Berkshire]:California | |
Locality Name (eg, city) [Newbury]:Los Angeles | |
Organization Name (eg, company) [My Company Ltd]:The Geek Stuff | |
Organizational Unit Name (eg, section) []:IT | |
Common Name (eg, your name or your server's hostname) []: thegeekstuff | |
Email Address []: | |
Please enter the following 'extra' attributes | |
to be sent with your certificate request | |
A challenge password []: | |
An optional company name []: | |
# ls -ltr www.thegeekstuff.* | |
-rw-r--r-- 1 root root 963 Jun 13 20:26 www.thegeekstuff.com.key | |
-rw-r--r-- 1 root root 664 Jun 13 20:35 www.thegeekstuff.com.csr | |
# openssl x509 -req -days 365 -in www.thegeekstuff.com.csr -signkey www.thegeekstuff.com.key -out www.thegeekstuff.com.crt | |
Signature ok | |
subject=/C=US/ST=California/L=Los Angeles/O=thegeekstuff/OU=IT/CN=www.thegeekstuff.com | |
Getting Private key | |
Enter pass phrase for www.thegeekstuff.com.key: | |
# ls -l www.thegeekstuff* | |
-rw-r--r-- 1 root root 963 Jun 13 20:26 www.thegeekstuff.com.key | |
-rw-r--r-- 1 root root 664 Jun 13 20:35 www.thegeekstuff.com.csr | |
-rw-r--r-- 1 root root 879 Jun 13 20:43 www.thegeekstuff.com.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment