diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 16:34:22 +0100 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 16:34:22 +0100 |
| commit | d7158f975e671b78f0a064dd873cfa7805667528 (patch) | |
| tree | 9b40f263c4f613a0dc49f5d8628c371164afd546 /pathod/test/scripts | |
| parent | 5fe473fb431699c71aa74bb715c2cb5b0500f044 (diff) | |
| download | mitmproxy-d7158f975e671b78f0a064dd873cfa7805667528.tar.gz mitmproxy-d7158f975e671b78f0a064dd873cfa7805667528.tar.bz2 mitmproxy-d7158f975e671b78f0a064dd873cfa7805667528.zip | |
move tests into shared folder
Diffstat (limited to 'pathod/test/scripts')
| -rwxr-xr-x | pathod/test/scripts/generate.sh | 17 | ||||
| -rw-r--r-- | pathod/test/scripts/openssl.cnf | 39 |
2 files changed, 0 insertions, 56 deletions
diff --git a/pathod/test/scripts/generate.sh b/pathod/test/scripts/generate.sh deleted file mode 100755 index eec3077d..00000000 --- a/pathod/test/scripts/generate.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/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 diff --git a/pathod/test/scripts/openssl.cnf b/pathod/test/scripts/openssl.cnf deleted file mode 100644 index 5c890354..00000000 --- a/pathod/test/scripts/openssl.cnf +++ /dev/null @@ -1,39 +0,0 @@ -[ req ] -default_bits = 1024 -default_keyfile = privkey.pem -distinguished_name = req_distinguished_name -x509_extensions = v3_ca - -[ req_distinguished_name ] -countryName = Country Name (2 letter code) -countryName_default = NZ -countryName_min = 2 -countryName_max = 2 -stateOrProvinceName = State or Province Name (full name) -stateOrProvinceName_default = Otago -localityName = Locality Name (eg, city) -0.organizationName = Organization Name (eg, company) -0.organizationName_default = Pathod -commonName = Common Name (e.g. server FQDN or YOUR name) -commonName_default = test.com -commonName_max = 64 - -[ v3_req ] - -basicConstraints = CA:FALSE -keyUsage = nonRepudiation, digitalSignature, keyEncipherment - -[ v3_ca ] - -keyUsage = digitalSignature, keyEncipherment -subjectKeyIdentifier=hash -authorityKeyIdentifier=keyid:always,issuer:always -basicConstraints = CA:true -subjectAltName = @alternate_names - - -[ alternate_names ] - -DNS.1 = test.com -DNS.2 = test2.com -DNS.3 = test3.com |
