Skip to content

Commit

Permalink
Makes sample cert generations faster in example script
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper-prog committed Feb 19, 2021
1 parent ab89b3f commit 3b44f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXAMPLES/complex_docker_compose/create_certs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ CLIENTCERTNAME="rgmclient"

openssl genrsa -out ${SERVERCERTNAME}.key 2048
openssl ecparam -genkey -name secp384r1 -out ${SERVERCERTNAME}.key
openssl req -new -x509 -sha256 -key ${SERVERCERTNAME}.key -out ${SERVERCERTNAME}.crt -days 365
openssl req -new -x509 -sha256 -key ${SERVERCERTNAME}.key -out ${SERVERCERTNAME}.crt -days 365 -subj '/CN=restgomail/O=localtest/C=US'

openssl genrsa -out ${CLIENTCERTNAME}.key 2048
openssl ecparam -genkey -name secp384r1 -out ${CLIENTCERTNAME}.key
openssl req -new -x509 -sha256 -key ${CLIENTCERTNAME}.key -out ${CLIENTCERTNAME}.crt -days 365
openssl req -new -x509 -sha256 -key ${CLIENTCERTNAME}.key -out ${CLIENTCERTNAME}.crt -days 365 -subj '/CN=testclient/O=localtest/C=US'

mv ${SERVERCERTNAME}.key ./data/
mv ${SERVERCERTNAME}.crt ./data/
Expand Down

0 comments on commit 3b44f45

Please sign in to comment.