Skip to content

Instantly share code, notes, and snippets.

@ethinx
Created November 13, 2023 13:36
Show Gist options
  • Select an option

  • Save ethinx/d3d56772175e8cf1fcc83723e5fb1188 to your computer and use it in GitHub Desktop.

Select an option

Save ethinx/d3d56772175e8cf1fcc83723e5fb1188 to your computer and use it in GitHub Desktop.
openssl
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