From 6030c05a53151b7a77fd4e204528b1a3d53196ef Mon Sep 17 00:00:00 2001 From: "boya.zheng" Date: Thu, 29 Mar 2018 15:34:54 +0800 Subject: [PATCH] update ssl pk and cert file && add genKey.sh --- doc/genKey.sh | 2 ++ gomitmproxy-ca-cert.pem | 34 ++++++++++++++-------------- gomitmproxy-ca-pk.pem | 50 ++++++++++++++++++++--------------------- 3 files changed, 44 insertions(+), 42 deletions(-) create mode 100755 doc/genKey.sh diff --git a/doc/genKey.sh b/doc/genKey.sh new file mode 100755 index 0000000..0abb784 --- /dev/null +++ b/doc/genKey.sh @@ -0,0 +1,2 @@ +openssl genrsa -out gomitmproxy-ca-pk.pem 2048 +openssl req -new -x509 -days 36500 -key gomitmproxy-ca-pk.pem -out gomitmproxy-ca-cert.pem \ No newline at end of file diff --git a/gomitmproxy-ca-cert.pem b/gomitmproxy-ca-cert.pem index bc17942..4ad1e83 100644 --- a/gomitmproxy-ca-cert.pem +++ b/gomitmproxy-ca-cert.pem @@ -1,19 +1,19 @@ -----BEGIN CERTIFICATE----- -MIIDIjCCAgqgAwIBAgIIFNKdPYoAW+YwDQYJKoZIhvcNAQELBQAwLzEXMBUGA1UE -ChMOZ29taXRtcHJveHkxLjExFDASBgNVBAMTC2dvbWl0bXByb3h5MB4XDTE3MDYx -OTAzMjE1M1oXDTE4MDcxOTAzMjE1M1owLzEXMBUGA1UEChMOZ29taXRtcHJveHkx -LjExFDASBgNVBAMTC2dvbWl0bXByb3h5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A -MIIBCgKCAQEA5i5e0Ioniij/zx4uP+pEwIfCPuqRHpmtxnylXtDJNS7Mibsl57cC -pKDymhGtehXKzt/7lv7Zh4PQyHUAPJQqTp6Q/bQRcnCEKoY0jSCDy7ZYxz+6YMth -JD9CG67jCio78hQDyYQc8RpUJ8FyH+HWE8xyPkixnGC9tZSG6bAtP2ORtn9AsKXX -8Hj9zWKrQqWFMbQvOp8SGVkqNsO/ZvIO3Rf5pBPlPT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AZfOejo4rzdjZEWQCZRFocPuFTvOw +6slPUZY1urp4fzvlQY5qOcatk+DkuB+FI4REsuSTu0kbRyVHoS5xiVRJPI6X0fZB +dRLqhJujrNqzYnyARMAzcRIV04FyDNY+2hxD3ViRL+XcMa/ksymloApqprAzvgxR +w5v8ob7GwTlxyJS4lxY8GptYPvxcXHF8bbyUCTLD+/OfAgMBAAEwDQYJKoZIhvcN +AQELBQADggEBAE3PSKbLIJTSX0E98nsguKspAzfExBwUbQSe8RIxDjOFmIiqqgPa +wW4P1LEdQtKWMIUcCubNj7RnpOo/2t1+rqSSnRUUQ8WpzBQ85WnpaR2pXdgkl1OA +LVYMgJU1cUHYD++ljVLnSDq7rOPe5TmVeycYejfkdXVP+WFsM5g8QEFYoQz6a16u +e75rM3JQu8sGNox5iktmcmnGkaYXr6XcbNEy1m0b5jXbmI2k4ffciE2Qs66nV/kT +3tg7fTN7Ptlu0pbqbpFgjd/cyFNKyq7yDbIyI0Y5Vpz44ZrkMQpjzN6wAiR5va2q +jg839LQ9Qcd7Qd01Jgyg2tyvoBFqzgx0puM= -----END CERTIFICATE----- diff --git a/gomitmproxy-ca-pk.pem b/gomitmproxy-ca-pk.pem index 5d49d37..deb3494 100644 --- a/gomitmproxy-ca-pk.pem +++ b/gomitmproxy-ca-pk.pem @@ -1,27 +1,27 @@ -----BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEA5i5e0Ioniij/zx4uP+pEwIfCPuqRHpmtxnylXtDJNS7Mibsl -57cCpKDymhGtehXKzt/7lv7Zh4PQyHUAPJQqTp6Q/bQRcnCEKoY0jSCDy7ZYxz+6 -YMthJD9CG67jCio78hQDyYQc8RpUJ8FyH+HWE8xyPkixnGC9tZSG6bAtP2ORtn9A -sKXX8Hj9zWKrQqWFMbQvOp8SGVkqNsO/ZvIO3Rf5pBPlPTUTsjXMFFN2PipoMgZn -F43CeXt3de+PxFfs+nN2IIPbLTmRHW8qrworkJ0TBJWYMiT6mFOEiqlF92pzdLND -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