LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices


Rate this Entry

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.
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
Posted in Uncategorized
Views 1151 Comments 3
« Prev     Main     Next »
Total Comments 3

Comments

  1. Old Comment
    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.com
    FQDN needs to be google.com to be recognized.
    Posted 11-28-2019 at 09:51 AM by ted_chou12 ted_chou12 is offline
  2. Old Comment
    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 ted_chou12 is offline
  3. Old Comment
    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.com
    Posted 01-17-2020 at 12:30 PM by ted_chou12 ted_chou12 is offline
 

  



All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration