Skip to content

Instantly share code, notes, and snippets.

@psy-q
Last active February 2, 2016 12:56
Show Gist options
  • Select an option

  • Save psy-q/4b3e0c5a53e6db2fcdbb to your computer and use it in GitHub Desktop.

Select an option

Save psy-q/4b3e0c5a53e6db2fcdbb to your computer and use it in GitHub Desktop.
openssl.cfg
openssl req -new -x509 -days 365 -nodes -out /etc/ssl/localcerts/protowww.zhdk.ch.pem -keyout /etc/ssl/localcerts/protowww.zhdk.ch.key -config /etc/ssl/localcerts/protowww.zhdk.ch.openssl.cfg
[req]
req_extensions = v3_req
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = req_distinguished_name
[req_distinguished_name]
C = CH
ST = ZH
L = Zurich
O = ZHdK
OU = ITZ
CN = protowww.zhdk.ch
[v3_req]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = one.protowww.zhdk.ch
DNS.2 = two.protowww.zhdk.ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment