Skip to content

Instantly share code, notes, and snippets.

@weaponsforge
Last active March 21, 2023 22:41
Show Gist options
  • Save weaponsforge/600782a22728056ebd6788c319921d51 to your computer and use it in GitHub Desktop.
Save weaponsforge/600782a22728056ebd6788c319921d51 to your computer and use it in GitHub Desktop.
req.cnf file input for openssl (use ff. to create secure ssl certificate for localhost)
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = PH
ST = Rizal
L = Manila
O = Celestial Being
OU = Assault
CN = mywebsite.com
[v3_req]
keyUsage = critical, digitalSignature, keyAgreement
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = mywebsite.com
DNS.2 = localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment