Generating Private Public Key
Posted 11-28-2019 at 09:16 AM by ted_chou12
Downloaded OpenSSL from:
https://developer.xero.com/documenta...licprivate-key
Windows version.
https://developer.xero.com/documenta...licprivate-key
Windows version.
Code:
openssl genrsa -out privatekey.pem 1024
Code:
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1
Quote:
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]:TW
State or Province Name (full name) [Some-State]:Taipei
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:3D-Products
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:3D-Products
Email Address []:webmaster@3d-products.com
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]:TW
State or Province Name (full name) [Some-State]:Taipei
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:3D-Products
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:3D-Products
Email Address []:webmaster@3d-products.com
Total Comments 3
Comments
-
Quote:C:\Program Files\OpenSSL-Win64\bin>openssl req -x509 -new -nodes -key privatekey.pem -sha256 -days 1 -out publickey.cer
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]:TW
State or Province Name (full name) [Some-State]:Taipei
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:3D-Products.com
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:google.com
Email Address []:webmaster@3d-products.comPosted 11-28-2019 at 09:51 AM by ted_chou12 -
openssl req -x509 -new -nodes -key privatekey.pem -sha256 -days 1 -out publickey.cer
Posted 11-28-2019 at 09:53 AM by ted_chou12 -
do this:
openssl genrsa -out google.com.pem 1024
openssl req -x509 -new -nodes -key google.com.pem -sha256 -days 390 -out google.com.cer
-----
Country Name (2 letter code) [AU]:TW
State or Province Name (full name) [Some-State]:Taipei
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:3D-Products
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:*.google.com
Email Address []:webmaster@3d-products.comPosted 01-17-2020 at 12:30 PM by ted_chou12