Skip to content

Instantly share code, notes, and snippets.

@afifabroory
Created February 6, 2023 06:01
Show Gist options
  • Save afifabroory/1c180c8428815b09a2b84ef0c1279573 to your computer and use it in GitHub Desktop.
Save afifabroory/1c180c8428815b09a2b84ef0c1279573 to your computer and use it in GitHub Desktop.
SSL Automation
openssl genpkey -algorithm RSA -out private_key.pem
openssl req -new -x509 -days 1825 -key private_key.pem -out certificate.pem -config .\self-signed-kneks.cnf
[req]
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = req_distinguished_name
[req_distinguished_name]
countryName = ID
stateOrProvinceName = Jakarta
localityName = Jakarta
organizationName = Komite Nasional Ekonomi dan Keuangan Syariah
commonName = *.kneks.go.id
emailAddress = humas@kneks.go.id
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.1 = *.kneks.go.id
DNS.2 = *.kneksdev.my.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment