diff --git a/.travis.yml b/.travis.yml index b3d5d6cb2..375e66c31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ language: go go: - 1.9.x - 1.10.x +- 1.11.x +- 1.12.x services: - docker diff --git a/examples/customTls/certs/ca.key b/examples/customTls/certs/ca.key new file mode 100644 index 000000000..e8a383a24 --- /dev/null +++ b/examples/customTls/certs/ca.key @@ -0,0 +1,30 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,6038398CF5682C8D + +0ywZooqJ4w6M87oDY0M2h1vfPi2kLd3q1BackeLeor7NIr36kCYoN02IOC/bwAOP +6OjiaBCb4INyEIpJWolJ0ATJgtcFiy0S6Joo+mJiG3/EIXjVSYVJmwywKZuZgAr7 +Ms9lchEqhRiv7fswyG0InaCEm2V0LFucnWOs7LsSaDbKtNswG4o09F5ebHfOSDEe +6mSvD+rseRNYQrSxEqrvazYWzrMPvsLY4tIDYGJqjRX+OwdQI4ud9Bn1ninWTkuQ +H//0rYsosmkYSH15seOkeP+6UdhQv4ZwWcUTJoiYfPfFmEk3ywPWtbQ62JcwOL3U +aWew+3fJL55myMHEKCOUTraLedJOIxgcI0VZS7qBqnSGetyBsbun2hR9rIOFAVNq +hKw+u/P8lFzeEC8XFeg165VxWqy7iKnACG+EmGpz2F3prm7y4Hsf2L61EXOmyo/j +QxLuJ2lhcON6ydEXi+0UXwVnGrBw309BVfsUbGYDzpHjjrAV2k44d/RIdUKe2Ct1 +W7PT9Fy8hnbUCzdgk+Hu6vgaWDX/Ii+CepG3E3Q9YPQOSC2NxCq85KgdbcO91V8Y +zXIBDTrTybz8hKTVRFZKHqbt0fiQW/ES8dJsB6I+CmAl5Hqkwg9gnDqDfeXBEqz0 +MHrJUNLIS9tAmbdRcqBTMoXN2TLruVj99Tvpog5ZcpGRO9Do/NHfKW6yrSZvwlZb +GUikOeogdNICmwnTB6BevbETL1XB11Avu/VL7klbcV3YxdvwroYWla1wxrKMl/x0 +0kSlVbgIRLB0SFoHjPZAzBgWAQ6Cy5v5iIT+9sx5M5e6DQIA0It+k0tIP9CEv2O4 +FkTfaaVvgILBXaRFjpbYki9fDNQ1c4yBxcqSnniu2urIcqdrPtxwhVtYsx5G6U+j +Q/RNIjvXqjv5hEwJhuRh3OLGeEc7viHk00rCQRkOvo0uyMdVDcPHT6bfXP3BG9/Z +RQOgyUPKwg3lycvq7SShlwcWaYWOgbl6+4vXMwRGdfL7IBUyhwWZL/KGcOrmU29L +1worjvJYkukyM5ocx7xsd7NEyjVPc+c09BTeShbjhzn7VhC9+kqbYrdl2YU+7vy7 +D3ykD3HwfjBszuNe+QGON3+dl7jAw9ObRTGoH+lX1FKttKqvdqzweCEBgbsQHR9n +OCrZDzbgxZJOq5xfMm8dz+F6nZV4UyhvUTWLmsNpH4/K0b0f1wfuWAsCuSNufqAv +xHGnOEyoOAzqFB/5AaAexehDM7Z34xst9RtOMwDAxyWkKF9x0ckAHPc5qRuFXAcd +vlpf2w+9LzbEohUjAX/dbZgS88UU++vUQUTEI0hhzgdGyII90rASJ7EuEHHFTyio +Ad5hDhCqfTtOW+c3iaRHK//ETz5CrZamrnR73UKHAsTWrBSNtEi50y0T+6EG3zih +VxLlrrfiOQYJFp+MJq4O/yzlb+oH3qAmkORdtSWJlEtlxFaRg1kR8Yf4fuhnGug9 +Y/vIGSQid4//TfANbW6Izt9hw4tKzifrieDCjHr+vVQC7M2P5vFuRlolsA6Q0i7B +2ECYRBlE9flubPfPWLvhai5nF1iVZEmdYJI0vNljJHffZDppHQlIQnX+nMxlpItN +-----END RSA PRIVATE KEY----- diff --git a/examples/customTls/certs/ca.pem b/examples/customTls/certs/ca.pem index 0c5348a0d..6acb0d98c 100644 --- a/examples/customTls/certs/ca.pem +++ b/examples/customTls/certs/ca.pem @@ -1,19 +1,22 @@ -----BEGIN CERTIFICATE----- -MIIDAjCCAeqgAwIBAgIRANd+eeBjb4D4mNW86NmUFk8wDQYJKoZIhvcNAQ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F4/TwyjtIxCtfsH/0Ng5u7FJF2uKQ7Q/mhWtZpkqVBK3M +QQQ39mxRJ0n7IMtRCP+DTTpTukZ3LfhLRF7gzuh50vOucfvO8ulLd/kvT8tLZddw +ZZNCHsXC1qz3M92ZjLLnymjobro= -----END CERTIFICATE----- diff --git a/examples/customTls/certs/cert-key.pem b/examples/customTls/certs/cert-key.pem deleted file mode 100644 index f1bcc858d..000000000 --- a/examples/customTls/certs/cert-key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAuV2YLWXBXUyRp0FEIBr/Jp2EeOcm9XfQPZzZ6M21eH3Cky29 -+OD0ynINBdFHi7QB5fFdnTtg4jpH+q9CvvpGVcrW6tpjKic+RaN6abnSkz+RrXII -X4RtfV/W9wMz6V/h8nhzGWQID0iQkhooaIvTie2nQ+gwQm8wmCL1+KT2IRoELCvC -3VwrjDGde+dSOp+g9oWo4CkCce+wnSQQkI1Htctaq9EayAnrpPFupSTw0+AEOBJK -fGXg2yBN3EqUXBmF/jNcNsMqjV4LCheH6QYWSUxt24HoL9ycPdRnPeUKmzPi9dE9 -dNfXvPtoltE8e/D8zTNNGWcRgGR0lzfxuWeW/wIDAQABAoIBAEx13+Sx+W3bvKTq -FgjMOf0asl8QshBEyL/xaC1QVQ+LiGwfTSJQ4Ih1PQvuRH3K1ZGc2wmVSaRnd/Ne -wcB3CfYvgjFDve3QXC5rfX4I6WRVr2iFBhEoVeWGV+xyBMK6C0ByEMAjc/Oh8ghi -A9MEAlD9l6Y6K1Xr+XZ3zVAv81q5ZMEQsTERUkLA9lwDUpkQVipoLoKEVUeDiRvB -jH+t9/I+axyARyuEx0Vx4Dza4AOhyNdW9J9szlAo2dhV21vW12MLvKH9jx1U2iAw -vOBPe87xX40EIbiUkDrFKogdibFylQp/EWdsWFPM794b3D8/czfh2QYInghfoTzO -bk5+rrECgYEA8u5UBYHYhHV9cQNAZVmpDE1JwUBg34q5M11TuSs7dyy2iqiHI7MS -ysGsaOlf2bycKXQw10Ut+SVR0qnxjf2E/+cuCwnMySCaCPzat9UcGTMk3PqW7B4r -foYmUmgH9n9zc845/L/LNEtHkeLEAGOJL+jvwx4dKxf0C84TZmHUKscCgYEAw1Z4 -QI5L6OKIL1dGDUWLMJXkplxDSPH7XNwDg6zGa81T1NfgDCA+lyLqXEp9YqMSOk5N -4X+mTspazmgv3x6b6urGtIIRENZFLFgKqNfwDFkWDShwChF/8M7bzJsS4P/cNtr1 -lV0RHFERErRIE88v4ErXWwzDmOC/fJojJEW3OgkCgYEAzEuVKVR7C1nq9kFvxEvU -mF3e6sADN7rn6MRRhmVPCvf1Q0Ja87DC2vRo04l/bBLrmQj3kfHBqcayuuDkHS7Y -zIRT+kBxkarzHx/Vp8d2a9LQ621pwoPUvACA9cg6+hdQtlD1/xIkB4RPWeZEQrdy -RXI1P/dxPC5WtB7HvdADpz0CgYEApzvkgABTZPJsfXtOchZT8CikNPlQcacZ+Io0 -SAsnZSvI1bRsEHWaoHI4CwOLDWNnO5vGeYR7sYD09TmlonPmMN0HeYrRaYTIfAp0 -NdGJpkiu5Fz2buhEjLnM3AL3ysHCmwQitNmUyJVu9IB8JNmAt5nbfgwTeVMRHXAp -HejB0WECgYEA5hLQLsyqJY+BzzrvsC9RJ5y/U+P1KMFWnTyo/O8q2tihqSc9tlmk -Jun18bc6z9qzwiSrYqOpAsE6IJlG+Cf39tXytVCxpuBXIe529VZekl2tEYaqdiQ1 -0fbh7R+eGKRjtl+bXucciv+jok13oNWCTuTcpzbxWbNxenpMVYPwB5s= ------END RSA PRIVATE KEY----- diff --git a/examples/customTls/certs/cert.pem b/examples/customTls/certs/cert.pem deleted file mode 100644 index 709cd29c2..000000000 --- a/examples/customTls/certs/cert.pem +++ /dev/null @@ -1,19 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDGzCCAgOgAwIBAgIRAP5kAANG+3/2fVhI4QOB3qQwDQYJKoZIhvcNAQELBQAw -KjESMBAGA1UEChMJbG9jYWxob3N0MRQwEgYDVQQDEwtQa2kgQ0EgUm9vdDAeFw0x -NzAyMjgyMjIzMDBaFw0yMDAyMTMyMjIzMDBaMBExDzANBgNVBAoTBmNsaWVudDCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALldmC1lwV1MkadBRCAa/yad -hHjnJvV30D2c2ejNtXh9wpMtvfjg9MpyDQXRR4u0AeXxXZ07YOI6R/qvQr76RlXK -1uraYyonPkWjemm50pM/ka1yCF+EbX1f1vcDM+lf4fJ4cxlkCA9IkJIaKGiL04nt -p0PoMEJvMJgi9fik9iEaBCwrwt1cK4wxnXvnUjqfoPaFqOApAnHvsJ0kEJCNR7XL -WqvRGsgJ66TxbqUk8NPgBDgSSnxl4NsgTdxKlFwZhf4zXDbDKo1eCwoXh+kGFklM -bduB6C/cnD3UZz3lCpsz4vXRPXTX17z7aJbRPHvw/M0zTRlnEYBkdJc38blnlv8C -AwEAAaNVMFMwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr -BgEFBQcDATAMBgNVHRMBAf8EAjAAMBQGA1UdEQQNMAuCCWxvY2FsaG9zdDANBgkq -hkiG9w0BAQsFAAOCAQEASZe43Hi5HDj4odD7fjPHZcNOFUjc4GV5xR0P5sKS1yVO -3D5Gf9v4OVA7O3ejCLQP2lSq++EMUChAVpCJsfzXDwqe8YoHLnSS+EID+JpHEZ8P -PXXc59S/2HN7kEP447MRJCpFbOHy/axFkzZAlpQr7ffUhPQy3gnDWHDQ6uie6Od5 -bRX2B6Whgy9ey7PR3CMT8+SowCjhsKqE3y0vto+55XxMec35uKXI/djOZzje94fE -n7plsWLOgYu0aeOkVKLe6s/Q0/mjO7zicDHwMq0QvFIcMU/MgrZkvcq+2sg/6Rp0 -iKnKss7cdrxnA7fOsGK8mWP0U6GizCvVigI1zN5dZg== ------END CERTIFICATE----- diff --git a/examples/customTls/certs/server-cert.pem b/examples/customTls/certs/server-cert.pem index 024eb2546..0cf939785 100644 --- a/examples/customTls/certs/server-cert.pem +++ b/examples/customTls/certs/server-cert.pem @@ -1,19 +1,22 @@ -----BEGIN CERTIFICATE----- -MIIDHTCCAgWgAwIBAgIQQcVnWwEK0r3ZCbXx+LQRtTANBgkqhkiG9w0BAQsFADAq -MRIwEAYDVQQKEwlsb2NhbGhvc3QxFDASBgNVBAMTC1BraSBDQSBSb290MB4XDTE3 -MDIyODIyMjMwMFoXDTIwMDIxMzIyMjMwMFowFDESMBAGA1UEChMJbG9jYWxob3N0 -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwOk54aC6EXZpNcxlO8L/ -ZIc/u4HNrB2VovT9osAs+ZPZOxd6w/l3e5mblxbh3j1Otjh5Y9e1wm9c0DytRhx9 -NUvzJ5weECGmk0FgU9Oe/OHnn5WayUK0Z8S56ln9bZbXDlnusRCyMGXhFuQqoabP -rpfqNvIP5XQeKxJMnLp2xYZV18O6nmjGYSSLMjNLr6MqA/KRRyP68yLhx4pXH1mL -bA5pjoxiJoI7tGLUTkMWco4O7bW0czR9AK72ZALSDgWDIKLQlRlQJ05wk+wnDykk -4pt6gABodkeyJvp6D5ayuAZBH0xOGxOW2Y4RPowb0tNIw4Sd7HthodLLjUiM7QwJ -AQIDAQABo1UwUzAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwIG -CCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA0G -CSqGSIb3DQEBCwUAA4IBAQB3DOgS/faqoMLqHCwTJsocD4etXU1Es7zTsI8QSYLp -JCj4ykJ58NASmfwtn+MDBc0wiKqP8Cyudh5j2uQGQ/pL/h99EGy4TY7rN/riop0m -x07yvV+mi65nwT/YEyX3Jymx4+78AvdHIWT9uj5nED6+pBufqHQHVm6btPF/hsA1 -4YTbWSGnrkcplBw3sWP5HoVVtfJ7TzhqVrSSQB+lRRXPHzRCq5f3BM5f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/Z2XhhS5HRXhuP3iQqzDNHCez2EriXzNtl +Ay9tNJF4vCmdtOtYlQJcbmJ7UrS7j6Km0JlUMBRmD0f2GOEs/ivtXv3DFuSkFITr +vp0J6ISfvq6BG5Y/IgYToOBYWZRDcPk68748QChuxas5IR5RCMLIY1EhiX+8V51j +GFEeBDLoFqFhrdCE/IzqNnCAP/Dq3d6wKCH+k/0BSfMyLSWc3cLmSZbLnzHtUKeU +N+EpcpgeuNLFBzhx7KS3CCSSXttWINgFAfr+bIyFtRL6BjQMKggLaynLOZs8lsdY +jtZ5nBZK2lfcY8lG6fpDaDqysFI= -----END CERTIFICATE----- diff --git a/examples/customTls/certs/server-key.pem b/examples/customTls/certs/server-key.pem index 7366917d5..987da3156 100644 --- a/examples/customTls/certs/server-key.pem +++ b/examples/customTls/certs/server-key.pem @@ -1,27 +1,27 @@ -----BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEAwOk54aC6EXZpNcxlO8L/ZIc/u4HNrB2VovT9osAs+ZPZOxd6 -w/l3e5mblxbh3j1Otjh5Y9e1wm9c0DytRhx9NUvzJ5weECGmk0FgU9Oe/OHnn5Wa -yUK0Z8S56ln9bZbXDlnusRCyMGXhFuQqoabPrpfqNvIP5XQeKxJMnLp2xYZV18O6 -nmjGYSSLMjNLr6MqA/KRRyP68yLhx4pXH1mLbA5pjoxiJoI7tGLUTkMWco4O7bW0 -czR9AK72ZALSDgWDIKLQlRlQJ05wk+wnDykk4pt6gABodkeyJvp6D5ayuAZBH0xO -GxOW2Y4RPowb0tNIw4Sd7HthodLLjUiM7QwJAQIDAQABAoIBAG9edc7/ZkwsiyLG -5G6y7ZRQzIdosZ862SdhvofV4GEZbODDdllrTQJrNLruN+mAhU+HnPT6FHGyrud9 -EB+Y1OQO+8qTQ3vWoX8D0CO02WVu2bR0vw6P1uzNUvOrjjZVTcR4QOeyFt0ABAme -Icp/LgjCpTGhX3H9Lml5QAd/UpBHMuGYpZ7NZTRED4spWKYoQeqhCNzU7lY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AkWzC8oR2e7lBby5QylCy +f96goHHazMyAXUseV9d+ouTfl/ZOdbxGvkeXvSF3khuJ7BfyWJjXACmlODuNVzvR +st5EceK6Tw8vVzK2juKwyh+JxpbWoy98RgwYe6q3icXZIYwfjqtHLERRd1rDV0SL +jSHsQhuOYlS0Y/IeY/1SYJECgYEAyiu2a4hPF3fTYalHa/lrDnSpoygkS30MXlJ1 ++2OjjH1E3y7wwYsdXp7y5uiKg5K1wUZXDX29nKB7twH30zWB9iVQaWAACUDk07qO +ifc5jbLtGOU26+DgjmSl8AiUAWnSpKKkSVzJeuUBnfeu4ZDnd/v9DRpCmheV75qj +xOJ8eIECgYArVEFL7QYCXqmxerZSep/wzh6tjsqt18i1T6qzznp0D/v/IUHiU+7a +rAB935RlR7tXdSyXGu60R8hYJUHFlDgeRgtOitKxDgUPAc3iCGcN/HFcMsgb5bPl +1AmcGiPmE0tZipYFdObgSS0relUr4y0em7YHc8esCpGqRs5rNwwmoA== -----END RSA PRIVATE KEY----- diff --git a/examples/customTls/self_signed_certificate_test.go b/examples/customTls/self_signed_certificate_test.go index 91ccf43fe..9e4ccbbe0 100644 --- a/examples/customTls/self_signed_certificate_test.go +++ b/examples/customTls/self_signed_certificate_test.go @@ -23,6 +23,8 @@ func TestExample_SelfSignedTLSProvider(t *testing.T) { go startServer() pact := createPact() + // time.Sleep(100 * time.Second) + _, err := pact.VerifyProvider(t, types.VerifyRequest{ ProviderBaseURL: fmt.Sprintf("https://localhost:%d", port), PactURLs: []string{filepath.ToSlash(fmt.Sprintf("%s/consumer-selfsignedtls.json", pactDir))}, @@ -86,3 +88,10 @@ func getCaCertPool() *x509.CertPool { return caCertPool } + +// Generate a certificate with self-signed CA +// openssl genrsa -des3 -out ca.key 2048 +// openssl req -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.pem +// openssl genrsa -out server-key.pem 2048 +// openssl req -new -key server-key.pem -out server.csr // Set "localhost" as the common name +// openssl x509 -req -in server.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out server-cert.pem -days 3650 -sha256