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.

Revisions

  1. ethinx created this gist Nov 13, 2023.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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