For When You Can't Have The Real Thing
[ start | index | login ]
start > SSL Quick Gude

SSL Quick Gude

Created by dave. Last edited by dave, 14 years and 248 days ago. Viewed 2,930 times. #2
[diff] [history] [edit] [rdf]

Generating a CSR

# openssl genrsa 1024 >
Generating RSA private key, 1024 bit long modulus
e is 65537 (0x10001)
#  openssl req -new -key -out
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) [AU]:CA
State or Province Name (full name) [Some-State]:Ontario
Locality Name (eg, city) []:Ottawa
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Company & Co.
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:*
Email Address []

Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:Company & Co.

The important line is:

Common Name (eg, YOUR name) []:*
This is the name that the SSL server will present on contact. Note that if you need a wildcard (as the example illustrates) your vendor will undoubtedly charge you more.

Reading the content of a .CSR

# openssl req -in -noout -text

Reading the content of a certificate

# openssl x509 -x509toreq -in -signkey -noout -text | less

Installing the cert left as an exercise for the reader. You might try reading these pages: >>


no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt