certificates:create_a_ca_certificate_authority
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
certificates:create_a_ca_certificate_authority [2020/04/06 14:16] – created peter | certificates:create_a_ca_certificate_authority [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code bash> | <code bash> | ||
- | openssl genrsa -out myProxykey.key 2048 | + | openssl genrsa -out myCA.key 2048 |
</ | </ | ||
- | This will create an rsa key file named myProxykey.key that we use to sign our rootCA with in the next command for generating | + | This will create an rsa key file named myCA.key that we use to sign the public |
Create a pem file signed with the key: | Create a pem file signed with the key: | ||
<code bash> | <code bash> | ||
- | openssl req -x509 -new -nodes -key myProxykey.key -sha256 -days 365 -out myProxyca.pem | + | openssl req -x509 -new -nodes -key myCA.key -sha256 -days 365 -out myCA.pem |
</ | </ | ||
- | This will prompt you to answer some questions to generate the needed | + | This will prompt you to answer some questions to generate the pem file: |
+ | |||
+ | * Country Name (2 letter code) [AU]: | ||
+ | * State or Province Name (full name) [Some-State]: | ||
+ | * Locality Name (eg, city) []:**St. Helier** | ||
+ | * Organization Name (eg, company) [Internet Widgits Pty Ltd]: | ||
+ | * Organizational Unit Name (eg, section) []:**IT** | ||
+ | * Common Name (e.g. server FQDN or YOUR name) []: | ||
+ | * Email Address []: | ||
- | <code bash> | ||
- | Country Name (2 letter code) [AU]:**JE** | ||
- | State or Province Name (full name) [Some-State]: | ||
- | Locality Name (eg, city) []:**St. Helier** | ||
- | Organization Name (eg, company) [Internet Widgits Pty Ltd]: | ||
- | Organizational Unit Name (eg, section) []:**IT** | ||
- | Common Name (e.g. server FQDN or YOUR name) []: | ||
- | Email Address []: | ||
- | </ | ||
At this point you should have 2 files: | At this point you should have 2 files: | ||
<code bash> | <code bash> | ||
- | myProxyca.pem | + | myCA.pem |
- | myProxykey.key | + | myCA.key |
</ | </ | ||
- | The myProxyca.pem file is the public key. | + | The myCA.pem file is the public key. |
+ | |||
+ | <WRAP alert> | ||
+ | **ALERT: | ||
+ | |||
+ | Protect the private key! | ||
+ | </ | ||
- | The myProxykey.key is the private key; which you do NOT want to share. | ||
certificates/create_a_ca_certificate_authority.1586182581.txt.gz · Last modified: 2020/07/15 09:30 (external edit)