Skip to content

Commit

Permalink
test: automate verification hash generation for integration test cert…
Browse files Browse the repository at this point in the history
…s. (envoyproxy#5090)

While working on envoyproxy#1319, it became clear that just running certs.sh to
regenerate certs does not actually work anymore, since we now have
hardcoded hashes for verify_certificate_hash in various places.

This PR fixes this for test/config/integration/certs. The problem still
exists for test/common/ssl/test_data. I will do a separate PR for that
based on the outcome of the review for this PR.

I also removed the optional private key regeneration in this PR. I think
we should always regenerate everything to prevent the bit rot regression
this PR fixes; long term this should be done by Bazel automagically, but
that would force an openssl dependency in the environment or the
adoption of a tool such as https://github.com/square/certstrap.

Risk Level: Low
Testing: bazel test //test/integration/...

Signed-off-by: Harvey Tuch <[email protected]>
  • Loading branch information
htuch authored Nov 20, 2018
1 parent 2b5d241 commit 476468e
Show file tree
Hide file tree
Showing 20 changed files with 174 additions and 157 deletions.
1 change: 1 addition & 0 deletions test/config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ envoy_cc_test_library(
"//source/common/network:address_lib",
"//source/common/protobuf",
"//source/common/protobuf:utility_lib",
"//test/config/integration/certs:hashes",
"//test/integration:server_stats_interface",
"//test/test_common:environment_lib",
"//test/test_common:network_utility_lib",
Expand Down
5 changes: 5 additions & 0 deletions test/config/integration/certs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ filegroup(
name = "certs",
srcs = glob(["*.pem"]),
)

cc_library(
name = "hashes",
hdrs = glob(["*hash.h"]),
)
22 changes: 11 additions & 11 deletions test/config/integration/certs/cacert.pem
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
-----BEGIN CERTIFICATE-----
MIICzTCCAjagAwIBAgIJAPMCF0JylKygMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
MIICzTCCAjagAwIBAgIJAJ6rk+HiTbNmMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJh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C31+xe4GSQfAF9gutbin8S5XS5QC7KcOla4qoSSFAgMBAAGjYzBhMA8G
A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSMzBlKJavq
qJaCaPdQnZa2YUUQ7DAfBgNVHSMEGDAWgBSMzBlKJavqqJaCaPdQnZa2YUUQ7DAN
BgkqhkiG9w0BAQsFAAOBgQCa96KsF0/LCtNceRuTPON4Nqg53OJI2VkCDmKmIQgx
nm+8TVg1RszCM1+QVIwih3xzwVYFEKUqpf1t4RxsPK+m7kv7RJnNkcFbGT8i5o4i
U1taxOmFJm1LOMY86GA0hOMWQKiqQdyxtT846M2a/fs5NNMWuJ3aXmzCsiXAhKAj
EQ==
-----END CERTIFICATE-----
26 changes: 13 additions & 13 deletions test/config/integration/certs/cakey.pem
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQD8F0Q31cwelKpyujvui+sZN1Yl+l9aHhOYbY8RcjS+M9OUnKXU
CmL2ItdQPtw62mOuInnAI+E7cA52R4qVw3Ug4xq1uPvnSJdsXkLTAlfkP7k2Yb/Q
HxGdbqfToX7wdd6VBNphfw17Blztd8941jZg24fg/gJl4r3oGSwLoi0GSQIDAQAB
AoGBANyPjsQ7bwgikq8memFQUjYR0HISCXNTdVmcIdzly3fO6IPSOtS28bbg7Pns
xctIYIZu649M1Ten5z9dgMdf6A1NnNxcNR1sX7J1lU4sjFh4BbF/nxnoy/LwpMAp
SXgbjrRfw1fCNGryzsaTFWL0cgiNP1Uac8Q3GLi5yU/VP2PBAkEA/t6WzuW537qI
/FHj40PdsZZTQ//GaU1kfkKn+e6GWtz5WHREh1Q+x2X73m7C3P8CFrQ0tP+71lUr
uVrLg6IBHQJBAP01ha9Fuhv1qbrggWQkqkLsyY4TpOHMBxf4hDkaSvlG70aAC7ET
M2RDWobXSAwESm5tsOugAKqvEB5yU24/nh0CQQDUitGe9orcXZWxPaVauBT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4AwlE=
-----END RSA PRIVATE KEY-----
40 changes: 21 additions & 19 deletions test/config/integration/certs/certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@

set -e

# Uncomment the following lines if you want to regenerate the private keys.
# openssl genrsa -out cakey.pem 1024
# openssl genrsa -out serverkey.pem 1024
# openssl genrsa -out clientkey.pem 1024
# openssl genrsa -out upstreamcakey.pem 1024
# openssl genrsa -out upstreamkey.pem 1024
# $1=<CA name>
generate_ca() {
openssl genrsa -out $1key.pem 1024
openssl req -new -key $1key.pem -out $1cert.csr -config $1cert.cfg -batch -sha256
openssl x509 -req -days 730 -in $1cert.csr -signkey $1key.pem -out $1cert.pem \
-extensions v3_ca -extfile $1cert.cfg
}

# $1=<certificate name> $2=<CA name>
generate_cert_key_pair() {
openssl genrsa -out $1key.pem 1024
openssl req -new -key $1key.pem -out $1cert.csr -config $1cert.cfg -batch -sha256
openssl x509 -req -days 730 -in $1cert.csr -sha256 -CA $2cert.pem -CAkey \
$2key.pem -CAcreateserial -out $1cert.pem -extensions v3_ca -extfile $1cert.cfg
echo -e "// NOLINT(namespace-envoy)\n#define TEST_$(echo $1 | tr a-z A-Z)_CERT_HASH \"$(openssl x509 -in $1cert.pem -noout -fingerprint -sha256 | cut -d"=" -f2)\"" > $1cert_hash.h
}

# Generate cert for the CA.
openssl req -new -key cakey.pem -out cacert.csr -config cacert.cfg -batch -sha256
openssl x509 -req -days 730 -in cacert.csr -signkey cakey.pem -out cacert.pem -extensions v3_ca -extfile cacert.cfg

generate_ca ca
# Generate cert for the server.
openssl req -new -key serverkey.pem -out servercert.csr -config servercert.cfg -batch -sha256
openssl x509 -req -days 730 -in servercert.csr -sha256 -CA cacert.pem -CAkey cakey.pem -CAcreateserial -out servercert.pem -extensions v3_ca -extfile servercert.cfg

generate_cert_key_pair client ca
# Generate cert for the client.
openssl req -new -key clientkey.pem -out clientcert.csr -config clientcert.cfg -batch -sha256
openssl x509 -req -days 730 -in clientcert.csr -sha256 -CA cacert.pem -CAkey cakey.pem -CAcreateserial -out clientcert.pem -extensions v3_ca -extfile clientcert.cfg
generate_cert_key_pair server ca

# Generate cert for the upstream CA.
openssl req -new -key upstreamcakey.pem -out upstreamcacert.csr -config upstreamcacert.cfg -batch -sha256
openssl x509 -req -days 730 -in upstreamcacert.csr -signkey upstreamcakey.pem -out upstreamcacert.pem -extensions v3_ca -extfile upstreamcacert.cfg

generate_ca upstreamca
# Generate cert for the upstream node.
openssl req -new -key upstreamkey.pem -out upstreamcert.csr -config upstreamcert.cfg -batch -sha256
openssl x509 -req -days 730 -in upstreamcert.csr -sha256 -CA upstreamcacert.pem -CAkey upstreamcakey.pem -CAcreateserial -out upstreamcert.pem -extensions v3_ca -extfile upstreamcert.cfg
generate_cert_key_pair upstream upstreamca

rm *.csr
rm *.srl
22 changes: 11 additions & 11 deletions test/config/integration/certs/clientcert.pem
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDXzCCAsigAwIBAgIJAPF6WtmgmqzjMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
MIIDXzCCAsigAwIBAgIJAMlBGofCH4diMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp
c2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBMeWZ0IEVuZ2luZWVyaW5nMRAw
DgYDVQQDDAdUZXN0IENBMB4XDTE4MDQwNjIwNTgwNVoXDTIwMDQwNTIwNTgwNVow
DgYDVQQDDAdUZXN0IENBMB4XDTE4MTEyMDA0NDc1N1oXDTIwMTExOTA0NDc1N1ow
gagxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1T
YW4gRnJhbmNpc2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBMeWZ0IEVuZ2lu
ZWVyaW5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MBaAFIzMGUolq+qoloJo91CdlrZhRRDs
MA0GCSqGSIb3DQEBCwUAA4GBACHQTOB7Wn3fvF0npu3htxa68F0U12EW1WYmc/Mf
4h2dhv+MXVef0kjo6Yy2uX6X3iRkDgfVzvQTajHBkQV5pixeExfWfzklBP7Q7cgg
Zs6AyOMjoua7ulnppYaVO5LQfkoVr0TF3vGdDxaiLIq6hO9dPwPgtyuGnIVUx1Q4
wjle
-----END CERTIFICATE-----
4 changes: 4 additions & 0 deletions test/config/integration/certs/clientcert_hash.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// NOLINT(namespace-envoy)
#define TEST_CLIENT_CERT_HASH \
"72:68:C8:8B:7D:45:21:0F:F1:6D:FF:8C:CA:32:5B:53:23:B6:8A:97:6B:13:AA:29:57:11:D8:A1:1D:99:AF:" \
"BE"
26 changes: 13 additions & 13 deletions test/config/integration/certs/clientkey.pem
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDciJu+LKJ53IH/HqWQOo69PMHnLPvDyu4LQ76BkYSrPPscrzYz
slXg0Sz3dNQf4OJO8W7vvSJZ/CHvIczbsjf061NGhnqc0IPdhwlTNK8eAWYd4+7H
cCC9e2fmJC7AGHxzipKU1/gaJM9bQbpcfg4mTByHR0twwr6vSgn+yGi1NwIDAQAB
AoGBANcjtbva005Knc8CWMXROnrGEOuzaJDjIUJ//hNsoJ5kyRx8mUXpjfnaViG6
KU5IFr6orW7XdfGPFJOyx6Tzwb0ukXTcp+eblzL470FML7CS5wBN8j0Ppd3XP1MO
WZLSruhCuzQjT39ovHyKzftGTQ9qW5/juQ+oc57cil2jEEgBAkEA+6R3LwGr904r
kUWNmMdfPULj1EAuE7wB+8nxxv6nbHQF3Gsjiwj8MlI1dUh4B/PwBs4YsuVDAnCo
iWvhQ8WqAQJBAOBaPKuEGm/4UU7MtUxlMxNjl6RYXLLlHWcrz8aMzaQ//nR9HpTH
EJaomG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XsaM1IxS
BT1Y+xw2ODKRX2L590oWn3Go8i3kQhB9IwAjJir4ius7
-----END RSA PRIVATE KEY-----
20 changes: 10 additions & 10 deletions test/config/integration/certs/servercert.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDXDCCAsWgAwIBAgIJAPF6WtmgmqziMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
MIIDXDCCAsWgAwIBAgIJAMlBGofCH4djMA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp
c2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBMeWZ0IEVuZ2luZWVyaW5nMRAw
DgYDVQQDDAdUZXN0IENBMB4XDTE4MDQwNjIwNTgwNVoXDTIwMDQwNTIwNTgwNVow
DgYDVQQDDAdUZXN0IENBMB4XDTE4MTEyMDA0NDc1N1oXDTIwMTExOTA0NDc1N1ow
gaYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1T
YW4gRnJhbmNpc2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBMeWZ0IEVuZ2lu
ZWVyaW5nMRowGAYDVQQDDBFUZXN0IEJhY2tlbmQgVGVhbTEkMCIGCSqGSIb3DQEJ
ARYVYmFja2VuZC10ZWFtQGx5ZnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
iQKBgQCqtS9bbVbo4ZpO1uSBCDortIibXKByL1fgl7s2uJc77+vzJnqC9uLFYygU
1Z198X6jaAjc/vUkLFVXZhOU8607Zex8X+CdZBjQqsN90X2Ste1wqJ7G5SAGhptd
/nOfb1IdGa6YtwPTlVitnMTfRgG4fh+3DA51UulCGTfJXCaC3wIDAQABo4HAMIG9
iQKBgQDSk5iQ/qC6bc2oA9/EgJ4xfoj4dJ2O1je8Sht+fqcfB+i0JpUDVkXj22qo
5Sy40+SKI/WDfMZtEg5+XZ5V01wo58ar0MlQgmCdcA1Ijr/cMssB2gcGCbjMPOg4
Bi7VtIWH5PWritg+PNi1gnVjJ/ekjBwOEMkPRKIP3GHn193EXQIDAQABo4HAMIG9
MAwGA1UdEwEB/wQCMAAwCwYDVR0PBAQDAgXgMB0GA1UdJQQWMBQGCCsGAQUFBwMC
BggrBgEFBQcDATBBBgNVHREEOjA4hh5zcGlmZmU6Ly9seWZ0LmNvbS9iYWNrZW5k
LXRlYW2CCGx5ZnQuY29tggx3d3cubHlmdC5jb20wHQYDVR0OBBYEFLEoDrcF8PTj
2t6gbcjoXQqBlAeeMB8GA1UdIwQYMBaAFJzPb3sKqs4x95aPTM2blA7vWB+0MA0G
CSqGSIb3DQEBCwUAA4GBAJr60+EyNfrdkzUzzFvRA/E7dntBhBIOWKDvB2p8Hcym
ILbC6sJdUotEUg2kxbweY20OjrpyT3jSe9o4E8SDkebybbxrQlXzNCq0XL42R5bI
TSufsKqBICwwJ47yp+NV7RsPhe8AO/GehXhTlJBBwHSX6gfvjapkUG43AmdbY19L
LXRlYW2CCGx5ZnQuY29tggx3d3cubHlmdC5jb20wHQYDVR0OBBYEFKuBHhCwW/9V
2tvT1tfEafkSMWrqMB8GA1UdIwQYMBaAFIzMGUolq+qoloJo91CdlrZhRRDsMA0G
CSqGSIb3DQEBCwUAA4GBAIbKHNw7OXg4U+Frl6AO+7bOA2KO4qJaGkVU5HiWqECm
VCvTS10KHOaCZNP+5MNB7NnCHRaRN50AEYp5ETng/JOLE8V69VW38usMVctJhLo6
HCl25mocrEKAB+9Ur4OUcQx4OLlnazD9/cAhJBow66sW6iuatZE0Km6bUajbUoDQ
-----END CERTIFICATE-----
4 changes: 4 additions & 0 deletions test/config/integration/certs/servercert_hash.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// NOLINT(namespace-envoy)
#define TEST_SERVER_CERT_HASH \
"B3:F5:A1:8F:FF:CD:99:4C:46:1D:3F:98:F6:75:B0:8B:0F:9B:9C:6D:5F:7E:77:26:E9:13:E4:3C:43:14:E8:" \
"51"
26 changes: 13 additions & 13 deletions test/config/integration/certs/serverkey.pem
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCqtS9bbVbo4ZpO1uSBCDortIibXKByL1fgl7s2uJc77+vzJnqC
9uLFYygU1Z198X6jaAjc/vUkLFVXZhOU8607Zex8X+CdZBjQqsN90X2Ste1wqJ7G
5SAGhptd/nOfb1IdGa6YtwPTlVitnMTfRgG4fh+3DA51UulCGTfJXCaC3wIDAQAB
AoGBAIDbb7n12QrFcTNd5vK3gSGIjy2nR72pmw3/uuPdhttJibPrMcM2FYumA5Vm
ghGVf2BdoYMgOW9qv6jPdqyTHAlkjKRU2rnqqUgiRWscHsTok6qubSeE/NtKYhM3
O2NH0Yv6Avq7aVMaZ9XpmXp/0ovpDggFBzfUZW4d3SNhFGeRAkEA1F7WwgAOh6m4
0OaZgOkTE89shSXRJHeXUegYtR1Ur3+U1Ib/Ana8JcvtmkT17iR0AUjKqDsF/4LE
OrV6Gv6+DQJBAM3HL88Ac6zxfCmmrEYDfmz9PhNj0NhDgKt0wq/mSOlCIl6EUdBu
1jFNQ2b3qDdUbNKRBBMvWJ7agl1Wk11j9ZsCQD5fXFO+EIZnopA4Kf1idufqk8TH
RpWfSiIUOK1439Zrchq5S0w98yRmsHIOruwyaJ+38U1XiHtyvI9BnYswJkECQG2d
wLL1W6lxziFl3vlA3TTzxgCQOG0rsDwla5xGAOr4xtQwimCM2l7S+Ke+H4ax23Jj
u5b4rq2YWr+b4c5q9CcCQH94/pVWoUVa2z/JlBq/1/MbcnucfWcpj8HKxpgoTD3b
t+uGq75okt7lfCeocT3Brt50w43WwPbmvQyeaC0qawU=
MIICXgIBAAKBgQDSk5iQ/qC6bc2oA9/EgJ4xfoj4dJ2O1je8Sht+fqcfB+i0JpUD
VkXj22qo5Sy40+SKI/WDfMZtEg5+XZ5V01wo58ar0MlQgmCdcA1Ijr/cMssB2gcG
CbjMPOg4Bi7VtIWH5PWritg+PNi1gnVjJ/ekjBwOEMkPRKIP3GHn193EXQIDAQAB
AoGAEhSAJfrm2/rvjHyAqwOMEZ3WrtZ8bLYx5OXMBIllWgG41jb11mqC57SALO44
b8optj6uJtMAyn6hZfIt1Rqnr+d5rarbk/BjNobn2+GB9UpQU7562iCeH9lKDEJd
fqLJZgn2+OjUC9/GIMkTv08LfPgm8nghR3x4Q/sNTrf0jFUCQQD3+Su/UwksodUQ
d03B1qhEP4e2oa6Lx+DWc4e/u29pQ46ILSMA7X5IyL52PuMU+mk5kOG9axv4mXjB
jYg1XNP/AkEA2WSJdhXt/AW2lFepTWVeI4SyGxay6lgUsNhAhVYCgsKM+hqz8zG8
RsWld0iinUHtrc9uyk1cuF5IP2T3h8k3owJBAOALjGBAGQDvcv9+m42wcbXAJNF5
AaifvmBkX9l283GLLWOSTJcQ/VGrtpJFvYx9t8bgRWWMOeiCWZ2fT9rO9WcCQQCM
1zjDe2OqopzuMHjsPp8lzcOCD0uszZHiHMh4WgfYZWjmZERva6p6A3S2+iT4Uw1E
TR6PDF3kyJhwEd7YZwGXAkEA97sYBBHJC2JD8O1MAI+X90p7XJSTBdwVQ1qsjqVA
mGT+pZVVAyMR6AnvVM1q2qyjBcrr4oMIeblq1e6ApiDsEQ==
-----END RSA PRIVATE KEY-----
24 changes: 12 additions & 12 deletions test/config/integration/certs/upstreamcacert.pem
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
-----BEGIN CERTIFICATE-----
MIIC3zCCAkigAwIBAgIJAMM83D2OKSv5MA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNV
MIIC3zCCAkigAwIBAgIJAKqvsW2eOS9ZMA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp
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PzEoMqCD2rH8OAMew2Ei
blmj3gr3jF9Lmzg7GsbtmWE8tsL+CtRPl6J4phiuaHVpOd9jq9GV82yibo/MtHjW
tuKN2iXA4rrodADGY/XTK3ByMZrKBxMgYj6ng3yu2/8kQo6SVTghWxFElH0VRNL8
WlHAbe5nAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEG
MB0GA1UdDgQWBBSkkbQjKTl5cIKOS1Vt+ST4nkKVLzAfBgNVHSMEGDAWgBSkkbQj
KTl5cIKOS1Vt+ST4nkKVLzANBgkqhkiG9w0BAQsFAAOBgQAACXkbMKlIjmqFMhh/
Zr2lOrU5pHnQq1OwODFl4o2jkI9jYXISaavfwra+RqHnfkbvgg/qdmCrH0R6ekZf
5hRYhW/xoZgLEkbdGtAiKKzsQwmbAdAzmzKSZV2PaKYO+PztCpEgxGn8ekb38z+V
6eFOfm5tQDsdcJjyjI81Vu42uA==
-----END CERTIFICATE-----
26 changes: 13 additions & 13 deletions test/config/integration/certs/upstreamcakey.pem
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDW8WGN4St+cNHEg0XnqBCbaqHoLPr98KNwe1GpItgFl3HUCuJB
Ms9c3rEXMFIE94E6jXUCflojdFLWaRIKrzQ70kWI9TjSyK5z+3p9VHNpXeSh482X
0lJ5Q0pR1ERmndjf1fX7E/B1FKwBUjZ8kUZgOeM7rkD/HEAS5WF4IrGgAwIDAQAB
AoGAPA7mO0aXaJUNh+NGPRxwx3xcEQvAdgQvJtbOUnwx8B4I6D7CSYVw+3od8WTH
BixCJ6Iu96tmdFGkc9SX/fRGm41PpCYzUpToUkqPqWnCW8UPLUFJeBL6sujbJPQi
ROOhPBUyG6huKljLm1QP3fLUmzU5BRrglzKWk7sEYAthecECQQDzaGI9OW0se9w+
bAvm31/RlzbQNP+xiD+TN0Nom4ZivV2BxiVebiftPn24pD58HKcTeIGZ5j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BubnCPSZOxwIj+f
3qcBXosG+UwKCUOjhl8xAkEArMsu+3oOJnq48ZXvGRvCbWPDhcjY01j/kDXMqwTU
AFTkAyQIynR/4UKy0FyDZ3GvVIDtctmHQT/gmF6c6FvOeQ==
-----END RSA PRIVATE KEY-----
26 changes: 13 additions & 13 deletions test/config/integration/certs/upstreamcert.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDLjCCApegAwIBAgIJAPfssd/9ymzGMA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNV
MIIDLjCCApegAwIBAgIJAKHUkPiCL9FWMA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp
c2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBMeWZ0IEVuZ2luZWVyaW5nMRkw
FwYDVQQDDBBUZXN0IFVwc3RyZWFtIENBMB4XDTE4MDQwNjIwNTgwNVoXDTIwMDQw
NTIwNTgwNVowgYMxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYw
FwYDVQQDDBBUZXN0IFVwc3RyZWFtIENBMB4XDTE4MTEyMDA0NDc1N1oXDTIwMTEx
OTA0NDc1N1owgYMxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYw
FAYDVQQHDA1TYW4gRnJhbmNpc2NvMQ0wCwYDVQQKDARMeWZ0MRkwFwYDVQQLDBBM
eWZ0IEVuZ2luZWVyaW5nMR0wGwYDVQQDDBRUZXN0IFVwc3RyZWFtIFNlcnZlcjCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAu7BZ855UTUGLBbSIG7NbmOHnit0k
qhVaS7qf56wuGybRyoS82vUKKF+HG84DJZGjPCCzr9sjgPuDI2ebWf28YScS/K/v
VVVk4mdJcpL8LSKF9j2wWjD1fk/soLAf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