Skip to content

Commit

Permalink
add SAN crypki to tls server cert (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Po-Yao Chen <[email protected]>
  • Loading branch information
py4chen and Po-Yao Chen authored Mar 7, 2022
1 parent 0ac26c4 commit e7fbcd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-softhsm/gen-crt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ openssl \
-subj "/C=US/CN=localhost" \
-out server.csr

# sign server.csr by root CA
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 36500 -sha256
# sign server.csr by root CA
# add SAN `crypki` for docker network access.
openssl x509 -req -extfile <(printf "subjectAltName=DNS:crypki") -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 36500 -sha256


# for mutual TLS
Expand Down

0 comments on commit e7fbcd2

Please sign in to comment.