Created
November 13, 2023 13:36
-
-
Save ethinx/d3d56772175e8cf1fcc83723e5fb1188 to your computer and use it in GitHub Desktop.
openssl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl genrsa -out ca.key 4096 | |
| openssl req -new -key ca.key -out ca.csr -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CACommonName" | |
| openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt -days 3650 | |
| openssl genrsa -out key.pem 4096 | |
| openssl req -new -key key.pem -out csr.pem -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonName" | |
| openssl x509 -req -in csr.pem -CA ca.crt -CAkey ca.key -CAcreateserial -out cert.pem -days 365 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment