[root:/WebtoB] ./bin/CA -newreq
Loading \'screen\' into random state - done
Generating a 2048 bit RSA private key
......++++++
...++++++
writing new private key to \'newreq.pem\'
Enter PEM pass phrase: (input your password)
Verifying - Enter PEM pass phrase: (re-input your password)
-----
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]: country
State or Province Name (full name) []:State
Locality Name (eg, city) []:NewYork
Organization Name (eg, company) [Tmax Ltd]: company
Organizational Unit Name (eg, section) []:Digital Certificate Center
Common Name (eg, YOUR name) []:www.wincert.com
Email Address []:
Please enter the following \'extra\' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Request (and private key) is in newreq.pem
To save private key and CSR separated
- Generated as follows: \ "newreq.pem \" CSR is combined with a private key.
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,447AF17A17052543
MIICWwIBAAKBgQCRn2vwN9QfWyP+r27i29SFg3ErzX15T5GqRXc7/0LEKoJcfHDq
nplFpioaNyUbSbPtCw0fO0vU38Us8kGQWfrRF62WG69ZXcjewCWxOMQGkmfhhL9E
... ...
Z+zjmc/FF5JPp7lZXQJAILjbM2Rej66NAgK3TgpTfMs/5WshKan+P7MB9z7zEafp
9qPL0nW/QnsIX8i0nElFsQf2Kiv/NhiqBUeXhArnCQ==
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE REQUEST-----
MIIBqDCCARECAQAwaDEZMBcGA1UEAxMQd3d3LnRlc3QyNC5jby5rcjELMAkGA1UE
BhMCS1IxDjAMBgNVBAgTBXNlb3VsMRAwDgYDVQQHEwdrYW5nbmFtMQ0wCwYDVQQK
... ...
u4q5RijXaYL3HAjtmrOuBsLW1QAu+5TYlP9TDyowK/Zf4cqQNjTFxhrrLda2jAT7
KvGrI4azQr8fJFy+yTy8yH8J3+B19SQjEaBrvR9T8YlcMe9n0UtnFw29IYQ=
-----END CERTIFICATE REQUEST-----
To same file name key.pem
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,447AF17A17052543
MIICWwIBAAKBgQCRn2vwN9QfWyP+r27i29SFg3ErzX15T5GqRXc7/0LEKoJcfHDq
nplFpioaNyUbSbPtCw0fO0vU38Us8kGQWfrRF62WG69ZXcjewCWxOMQGkmfhhL9E
... ...
Z+zjmc/FF5JPp7lZXQJAILjbM2Rej66NAgK3TgpTfMs/5WshKan+P7MB9z7zEafp
9qPL0nW/QnsIX8i0nElFsQf2Kiv/NhiqBUeXhArnCQ==
-----END RSA PRIVATE KEY-----
- csr.txt To save csr.txt
-----BEGIN CERTIFICATE REQUEST-----
MIIBqDCCARECAQAwaDEZMBcGA1UEAxMQd3d3LnRlc3QyNC5jby5rcjELMAkGA1UE
BhMCS1IxDjAMBgNVBAgTBXNlb3VsMRAwDgYDVQQHEwdrYW5nbmFtMQ0wCwYDVQQK
... ...
u4q5RijXaYL3HAjtmrOuBsLW1QAu+5TYlP9TDyowK/Zf4cqQNjTFxhrrLda2jAT7
KvGrI4azQr8fJFy+yTy8yH8J3+B19SQjEaBrvR9T8YlcMe9n0UtnFw29IYQ=
-----END CERTIFICATE REQUEST-----