OpenSSL> req -config ./openssl.cnf -new -out sas.req -keyout saskey.pem -nodes Using configuration from ./openssl.cnf Generating a 1024 bit RSA private key ............................++++++ ..........................................++++++ writing new private key to 'saskey.pem' ----- 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) [US]: State or Province Name (full name) [North Carolina]: Locality Name (city) [Cary]: Organization Name (company) [Proton Inc.]: Organizational Unit Name (department) [IDB]: Common Name (YOUR name) []: proton.com Email Address []:Joe.Bass@proton.comPlease enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: OpenSSL>
Using configuration from ./openssl.cnf
Enter PEM pass phrase: password
Check that the request matches the signature
Signature ok
The Subjects Distinguished Name is as follows
countryName :PRINTABLE:'US'
stateOrProvinceName :PRINTABLE:'NC'
localityName :PRINTABLE:'Cary'
organizationName :PRINTABLE:'Proton, Inc.'
organizationalUnitName:PRINTABLE:'IDB'
commonName :PRINTABLE:'proton.com'
Certificate is to be certified until Oct 16 17:48:27 2003 GMT (365 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries Data Base Updated
openssl> x509 -text -in filename.pem
A
digital certificate contains data that was collected to generate the
digital certificate timestamps, a digital signature, and other information.
However, because the generated digital certificate is encoded (usually
in PEM format), it is unreadable.Certificate for OpenSSL CA -----BEGIN CERTIFICATE----- <PEM encoded certificate> -----END CERTIFICATE----- Certificate for Keon CA -----BEGIN CERTIFICATE----- <PEM encoded certificate> -----END CERTIFICATE----- Certificate for Microsoft CA -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----
<PEM
encoded certificate>
. The content of each digital
certificate is delimited with a -----BEGIN CERTIFICATE-----
and -----END
CERTIFICATE-----
pair. All text outside the delimiters
is ignored. Therefore, you might not want to use delimited lines for
descriptive comments. In the preceding template, the file that is
used contains the content of digital certificates for the CAs: OpenSSL,
Keon, and Microsoft.