diff options
Diffstat (limited to 'pathod/test/scripts/generate.sh')
-rwxr-xr-x | pathod/test/scripts/generate.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pathod/test/scripts/generate.sh b/pathod/test/scripts/generate.sh new file mode 100755 index 00000000..eec3077d --- /dev/null +++ b/pathod/test/scripts/generate.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ ! -f ./private.key ] +then + openssl genrsa -out private.key 3072 +fi +openssl req \ + -batch \ + -new -x509 \ + -key private.key \ + -sha256 \ + -out cert.pem \ + -days 9999 \ + -config ./openssl.cnf +openssl x509 -in cert.pem -text -noout +cat ./private.key ./cert.pem > testcert.pem +rm ./private.key ./cert.pem |