diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:49 +0100 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:49 +0100 |
| commit | 175ce43a30559115c08e41e5d87519e957ff96f6 (patch) | |
| tree | 9231c6396d15b70601492458b33f44bfe579233b /pathod/test/scripts/generate.sh | |
| parent | 43c3e164ecf13b2d0909f748c2c61f39e197659e (diff) | |
| parent | e8598f5f7a613d7d27130de970b4c0045b3ee0d1 (diff) | |
| download | mitmproxy-175ce43a30559115c08e41e5d87519e957ff96f6.tar.gz mitmproxy-175ce43a30559115c08e41e5d87519e957ff96f6.tar.bz2 mitmproxy-175ce43a30559115c08e41e5d87519e957ff96f6.zip | |
add pathod
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 |
