Skip to content

Commit

Permalink
wip: merge from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Fellows committed Feb 26, 2020
2 parents aa4db89 + 2025da9 commit 219ed9f
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 105 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ language: go
go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x

services:
- docker
Expand Down
30 changes: 30 additions & 0 deletions examples/customTls/certs/ca.key
Original file line number Diff line number Diff line change
@@ -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-----
37 changes: 20 additions & 17 deletions examples/customTls/certs/ca.pem
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDAjCCAeqgAwIBAgI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33MnX8B7Ncozg//El
MbtAWIzs8yTrVBnJhmiF4/TwyjtIxCtfsH/0Ng5u7FJF2uKQ7Q/mhWtZpkqVBK3M
QQQ39mxRJ0n7IMtRCP+DTTpTukZ3LfhLRF7gzuh50vOucfvO8ulLd/kvT8tLZddw
ZZNCHsXC1qz3M92ZjLLnymjobro=
-----END CERTIFICATE-----
27 changes: 0 additions & 27 deletions examples/customTls/certs/cert-key.pem

This file was deleted.

19 changes: 0 additions & 19 deletions examples/customTls/certs/cert.pem

This file was deleted.

37 changes: 20 additions & 17 deletions examples/customTls/certs/server-cert.pem
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDHTCCAgWgAwIBAgIQQcVnWwEK0r3ZCbXx+LQRtTANBgkqhkiG9w0BAQsFADAq
MRIwEAYDVQQKEwlsb2NhbGhvc3QxFDASBgNVBAMTC1BraSBDQSBSb290MB4XDTE3
MDIyODIyMjMwMFoXDTIwMDIxMzIyMjMwMFowFDESMBAGA1UEChMJbG9jYWxob3N0
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwOk54aC6EXZpNcxlO8L/
ZIc/u4HNrB2VovT9osAs+ZPZOxd6w/l3e5mblxbh3j1Otjh5Y9e1wm9c0DytRhx9
NUvzJ5weECGmk0FgU9Oe/OHnn5WayUK0Z8S56ln9bZbXDlnusRCyMGXhFuQqoabP
rpfqNvIP5XQeKxJMnLp2xYZV18O6nmjGYSSLMjNLr6MqA/KRRyP68yLhx4pXH1mL
bA5pjoxiJoI7tGLUTkMWco4O7bW0czR9AK72ZALSDgWDIKLQlRlQJ05wk+wnDykk
4pt6gABodkeyJvp6D5ayuAZBH0xOGxOW2Y4RPowb0tNIw4Sd7HthodLLjUiM7QwJ
AQIDAQABo1UwUzAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwIG
CCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwFAYDVR0RB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3ULC/sbNijP8sYlS4ILq6Jdbbpja65Z3rA5vidCHt
I1zltsuaaCrj5MtR35pL5C4NpfsYQ9EE1m6xjjYHD6IId6/fNG+kUPt9NdfpRsvn
1DRTqeSSsG+L3oybwcS0DJ6OdD9Zc3LZrYPIyrcHhIRwrwrUjNNAcWa+KEatCQ4z
90BHEJzhrw4U7zsSTGf4QWoErvGwSfDhyEt1AgMBAAEwDQYJKoZIhvcNAQELBQAD
ggEBAKBKFlj82Ft3+OHeWqg47nKuid/Z2XhhS5HRXhuP3iQqzDNHCez2EriXzNtl
Ay9tNJF4vCmdtOtYlQJcbmJ7UrS7j6Km0JlUMBRmD0f2GOEs/ivtXv3DFuSkFITr
vp0J6ISfvq6BG5Y/IgYToOBYWZRDcPk68748QChuxas5IR5RCMLIY1EhiX+8V51j
GFEeBDLoFqFhrdCE/IzqNnCAP/Dq3d6wKCH+k/0BSfMyLSWc3cLmSZbLnzHtUKeU
N+EpcpgeuNLFBzhx7KS3CCSSXttWINgFAfr+bIyFtRL6BjQMKggLaynLOZs8lsdY
jtZ5nBZK2lfcY8lG6fpDaDqysFI=
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions examples/customTls/certs/server-key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAwOk54aC6EXZpNcxlO8L/ZIc/u4HNrB2VovT9osAs+ZPZOxd6
w/l3e5mblxbh3j1Otjh5Y9e1wm9c0DytRhx9NUvzJ5weECGmk0FgU9Oe/OHnn5Wa
yUK0Z8S56ln9bZbXDlnusRCyMGXhFuQqoabPrpfqNvIP5XQeKxJMnLp2xYZV18O6
nmjGYSSLMjNLr6MqA/KRRyP68yLhx4pXH1mLbA5pjoxiJoI7tGLUTkMWco4O7bW0
czR9AK72ZALSDgWDIKLQlRlQJ05wk+wnDykk4pt6gABodkeyJvp6D5ayuAZBH0xO
GxOW2Y4RPowb0tNIw4Sd7HthodLLjUiM7QwJ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uLb5G86zQHSj9yHmYAzIUYs8sS84wP4t07pJECgYEA5eaz
fPAyvoCwFijV4LtyddXj9iECpVGN1qGQnwerx9tndut1xJDW0lsMrUCcRO1ZfzNr
+Y3EIfa6BxjMfv4/BW8LAqGon30mCzoBKECMdZufrewrkl8BxgdW8P9OpkxHIscK
SaKNrgw1dYXQWh4srCadQDXMxtUk2NeTQh/YmqUCgYEAkWzC8oR2e7lBby5QylCy
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-----
9 changes: 9 additions & 0 deletions examples/customTls/self_signed_certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))},
Expand Down Expand Up @@ -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

0 comments on commit 219ed9f

Please sign in to comment.