Skip to content

Commit

Permalink
ci(services/tikv): add tikv integration test with tls (#3026)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-XD authored Sep 9, 2023
1 parent 1bb63ab commit 292cd88
Show file tree
Hide file tree
Showing 12 changed files with 418 additions and 1 deletion.
68 changes: 67 additions & 1 deletion .github/workflows/service_test_tikv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,70 @@ jobs:
RUST_LOG: debug
OPENDAL_TIKV_TEST: on
OPENDAL_TIKV_ENDPOINTS: "127.0.0.1:2379"
OPENDAL_TIKV_INSECURE: true
OPENDAL_TIKV_INSECURE: true

tikv-tls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Copy Tikv Certificate Files
shell: bash
working-directory: core/src/services/tikv/fixtures/
run: |
mkdir -p /tmp/tikv/ssl
cp -r `pwd`/ssl/* /tmp/tikv/ssl
- name: install tiup
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
- name: Start tikv-tls
run: |
# use latest stable version
~/.tiup/bin/tiup install tikv:v7.3.0 pd:v7.3.0
~/.tiup/components/tikv/v7.3.0/tikv-server \
--addr=127.0.0.1:20160 \
--advertise-addr=127.0.0.1:20160 \
--status-addr=127.0.0.1:20180 \
--pd-endpoints=https://127.0.0.1:2379 \
--data-dir=/tmp/tikv/data \
--log-file=/tmp/tikv/tikv.log \
--config=tikv-tls.toml &
~/.tiup/components/pd/v7.3.0/pd-server \
--name=pd1 \
--peer-urls=https://127.0.0.1:2380 \
--advertise-peer-urls=https://127.0.0.1:2380 \
--client-urls=https://127.0.0.1:2379 \
--advertise-client-urls=https://127.0.0.1:2379 \
--initial-cluster=pd1=https://127.0.0.1:2380 \
--data-dir=/tmp/pd1/data \
--log-file=/tmp/pd1/pd.log \
--config=pd-tls.toml &
while :; do
echo "waiting tikv-tls-cluster to be ready"
[[ "$(curl -I --cacert /tmp/tikv/ssl/ca.pem --cert /tmp/tikv/ssl/client.pem --key /tmp/tikv/ssl/client-key.pem https://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break
sleep 1
done
working-directory: core/src/services/tikv/fixtures/

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-protoc: true
need-nextest: true

- name: Test
shell: bash
working-directory: core
run: cargo nextest run tikv --features services-tikv
env:
RUST_BACKTRACE: full
RUST_LOG: debug
OPENDAL_TIKV_TEST: on
OPENDAL_TIKV_ENDPOINTS: "https://127.0.0.1:2379"
OPENDAL_TIKV_INSECURE: false
OPENDAL_TIKV_CA_PATH: "/tmp/tikv/ssl/ca.pem"
OPENDAL_TIKV_CERT_PATH: "/tmp/tikv/ssl/client.pem"
OPENDAL_TIKV_KEY_PATH: "/tmp/tikv/ssl/client-key.pem"
85 changes: 85 additions & 0 deletions core/src/services/tikv/fixtures/gen_cert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#! /bin/bash

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

set +e

mkdir -p /tmp/tikv/ssl

cd /tmp/tikv/ssl

cat << EOF > ca-csr.json
{
"CN": "Opendal Test CA",
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "CN",
"L": "BJ",
"O": "Opendal",
"ST": "Beijing"
}
]
}
EOF

cat << EOF > ca-config.json
{
"signing": {
"default": {
"expiry": "43800h"
},
"profiles": {
"server": {
"expiry": "43800h",
"usages": [
"signing",
"key encipherment",
"server auth",
"client auth"
]
},
"client": {
"expiry": "43800h",
"usages": [
"signing",
"key encipherment",
"client auth"
]
}
}
}
}
EOF

curl -L -o cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64

curl -L -o cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64

chmod +x cfssl*

./cfssl gencert -initca ca-csr.json | ./cfssljson -bare ca -

echo '{"CN":"tikv-server","hosts":[""],"key":{"algo":"rsa","size":2048}}' | ./cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=server -hostname="127.0.0.1" - | ./cfssljson -bare tikv-server

echo '{"CN":"pd-server","hosts":[""],"key":{"algo":"rsa","size":2048}}' | ./cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=server -hostname="127.0.0.1" - | ./cfssljson -bare pd-server

echo '{"CN":"client","hosts":[""],"key":{"algo":"rsa","size":2048}}' | ./cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=client -hostname="" - | ./cfssljson -bare client
29 changes: 29 additions & 0 deletions core/src/services/tikv/fixtures/pd-tls.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[schedule]
max-merge-region-keys = 3
max-merge-region-size = 1

# Using empty strings here means disabling secure connections.
[security]
# The path to the file that contains the PEM encoding of the server’s CA certificates.
cacert-path = "/tmp/tikv/ssl/ca.pem"
# The path to the file that contains the PEM encoding of the server’s certificate chain.
cert-path = "/tmp/tikv/ssl/pd-server.pem"
# The path to the file that contains the PEM encoding of the server’s private key.
key-path = "/tmp/tikv/ssl/pd-server-key.pem"
27 changes: 27 additions & 0 deletions core/src/services/tikv/fixtures/ssl/ca-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA8d2uu/Vu8xstL/vS6wSPJPlK9KlZKd3UPIGbmXSgo25g+sg1
AeNk+Qwain3+IOmn41HZZ24xmY/cuFQs+T1tdU8z9oH0ZrDViRiO6nnw/6i6/owv
BzjsoSoopwcHL9A65/09s09mngm1Ea9G7FSHTZ+ew8CY3U1Qznp4PQDiGQaphYju
EOYAGI/aajXr3osT9mDLP29VGTL970g1IlP1Cz8UFty8raiQ+XXuV7KW5soeO4A4
n6tboqjX6b556rmtYzq5vmn1W1Cl429q71eweTmwA1qAdSPRxCNlA0ExtTvVUgbF
hhD9mjTYK7XnjazYqUG2kgGik3Gl5Leww+BB9wIDAQABAoIBAEUvr7sukwVRwdRX
CdeWn0fpU+q2wr26KesA/DyiYw09FtrGCHu4y3p+Xt08+0P48sCQ+kqe9+tAftfv
pEnLq5MCDBA4zmvNq9eiwccLCMhpQMxt10oOm4nioGxfE0w3GZKhG1Q+o1ET38rm
Q7h42Zd30JeYcWHkqvfViq2Qohyb/98RzIyL5pXAMQl30oDCFvRzts0YpEzOVsCN
eWoXkyCh9pK8DxC3LbziXjzQ3HfASgIzATRhtitSeoNw6McMpOr2g0mzuqVru+1G
4GdUg78SOvjaCpihiO0CW7CL4o1xXUolPM5ICQo1wQKC0n03homwn0BVlIby7A1E
xU3bjQkCgYEA82tA+L2CqX1b8/7O8YqkR15VkRr57P6W3BBWzW//HKDqehCyV8wW
Jt1w0u/gzLfJQCBeEmeNCkVirUFhNsMWWpXJlTFHL87LwCxaPprb+ubENqqa/kpf
gCfvspaMQCffwWVPJB8+VpYTjLVNGawUXpDgcQIBfrVdeM7cWmJmZDMCgYEA/l3h
Yh1R2AK97tYDR4A0o7qtw+pgKrrcwZnXzSm8RO7UJ7DIXSQ8Hnv9Tt7k7lJHZtGA
rlGIUW6ik2WHRwGaAsXbdhJi2i4q/5CeJ/Ga0MQR178DmjgJylvFdcgi5X1pQlG0
0W9HHa3idnXMFHBSqNzI/HcRYBFEaEsIpvsPxy0CgYEA8F6dDgO1n0DXKJ4aJJLP
nlodDOkim1DcD/tifAN4XADbCiaqteAmj8Jjwyh1SDLEXLqZqnru35Gc25GQOc9z
p4f6Q4Uh0qfWs7IYe3HYgG6Ym5Lk8u7mV1sYa7YWUNQPNJ6iA/2GRWJ1c6EkvZEb
nDZcK7vbVhAqeT1sgyRgD9kCgYEA1T+hd177QWwzDWswPp5WAzm6+feg/dHAxzIR
wHeP1f6fsFK995AsMqZiG+Az7zTdlW5oQjwqW5K0C3xfqADIvDBiJ5+MbjusYqs8
XGJqF0F5b/U8sOrwEk1TwsWxs9GrECVtwPNYnKItrIBfQndUZSsL+NRdpbt0LTdS
nqL2fFUCgYEAnUjlttSdEJXxSqMh4XuIPQCq7s1eyKqgTWi1Z+OFxkssoOuVdECy
drjL2rn1qFTjwLX7D0EMlmy6uS/Z+o81rSQoLuoy8T4HyBG48PG2dTq6zqTt9c7r
SjTPTL1ysFtPSonNoMT1gkA4Uj722ipVw4ce5a7zm4ZWiVI2UhGtzIQ=
-----END RSA PRIVATE KEY-----
22 changes: 22 additions & 0 deletions core/src/services/tikv/fixtures/ssl/ca.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDpDCCAoygAwIBAgIUWXPIvGjwUtdODCumPCsfrRlS/7EwDQYJKoZIhvcNAQEL
BQAwWDELMAkGA1UEBhMCQ04xEDAOBgNVBAgTB0JlaWppbmcxCzAJBgNVBAcTAkJK
MRAwDgYDVQQKEwdPcGVuZGFsMRgwFgYDVQQDEw9PcGVuZGFsIFRlc3QgQ0EwHhcN
MjMwOTA4MTcwNzAwWhcNMjgwOTA2MTcwNzAwWjBYMQswCQYDVQQGEwJDTjEQMA4G
A1UECBMHQmVpamluZzELMAkGA1UEBxMCQkoxEDAOBgNVBAoTB09wZW5kYWwxGDAW
BgNVBAMTD09wZW5kYWwgVGVzdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBAPHdrrv1bvMbLS/70usEjyT5SvSpWSnd1DyBm5l0oKNuYPrINQHjZPkM
Gop9/iDpp+NR2WduMZmP3LhULPk9bXVPM/aB9Gaw1YkYjup58P+ouv6MLwc47KEq
KKcHBy/QOuf9PbNPZp4JtRGvRuxUh02fnsPAmN1NUM56eD0A4hkGqYWI7hDmABiP
2mo1696LE/Zgyz9vVRky/e9INSJT9Qs/FBbcvK2okPl17leylubKHjuAOJ+rW6Ko
1+m+eeq5rWM6ub5p9VtQpeNvau9XsHk5sANagHUj0cQjZQNBMbU71VIGxYYQ/Zo0
2Cu1542s2KlBtpIBopNxpeS3sMPgQfcCAwEAAaNmMGQwDgYDVR0PAQH/BAQDAgEG
MBIGA1UdEwEB/wQIMAYBAf8CAQIwHQYDVR0OBBYEFDAtw/yFYwW5kXA2L/W3egib
zNWiMB8GA1UdIwQYMBaAFDAtw/yFYwW5kXA2L/W3egibzNWiMA0GCSqGSIb3DQEB
CwUAA4IBAQAUmtThwXaeBokpsF1YjYcjU1GkPtLzLemxJKCidjNNQJh4ssD3CdKv
vll0jGOS3J6IXuTBeb/ihaSFsLAKs90+iKC4IV6fJwEKedGZC1rM40deDRNkgi2L
0oEVQ0hYs0vPrjR+eoDkk6bclcGCIkSYE2H5dOWu1uw2ssxwLuvltAoUko17e9kr
nzieHhE5uanijucgcezUPXKsAofEEqHU+6wnpi9uhT+Xebpobn5p+miFQRzDBNSF
RlgVDMiozEs3OhQr3CkZHc0XQa0gDy6gBNcznEtl/3sVUdGO6v5VxfQsdsHoRRfJ
oqc32cGdwg67BR71buJiwd+SHfjTvR8F
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions core/src/services/tikv/fixtures/ssl/client-key.pem
Original file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zQ5g3ljq23iGUQ47hbbuadhkaH
vqeNRrHy/kvFhZ3dZiPPNRCeWlsJASCkgJW46P8CgYAmACsgZMbOVR9C3Rrl5QYj
6s5xD3tDOyKQr8dk1kZyv7R/UjSePWStrlhVPTyW39+RhgeYHl9fqhjy/VAEUCOX
7c4q6t3D4TMJvTIjScdaF3KK3wLo6vAPjSYQxQRhMFH4im3xC6enQj+Ac8aR2fqQ
7qZsLnQCLS0vWo021GQLzwKBgQC3luOy/AmTFvxMlakoPz47O648yqSaFS7HM1ZH
qK0sxNDumaMQgSb98im26dwnzY31gqqvVab9YUDni7OBUwRhxQ3J/bxiBgx0ZlNY
VBTHn8hS8q+oUurJrIbnNeT5NLcO7R4y7dWepAWLhbOTKqaIvlbeDnHhkTdxIxoU
dzmkqwKBgQC+GQ6cQzCwMPREYcmwkxlwLM4pPMr3KKnqEXGucttqWmvPKR6dXiuJ
vFrzcI5DEylNVOysD2bH5GHNXImovi7uMIgW97+kY6T+GP2DJcZw+X0xhMmTgYEG
1spIPx+sWs7I+j7gyQ/tYPossawnypQSbKv/QDK0c8WZlrqdg3lweQ==
-----END RSA PRIVATE KEY-----
21 changes: 21 additions & 0 deletions core/src/services/tikv/fixtures/ssl/client.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDezCCAmOgAwIBAgIUQNwWtaZiZEEHyHznzpAzv4ylRsMwDQYJKoZIhvcNAQEL
BQAwWDELMAkGA1UEBhMCQ04xEDAOBgNVBAgTB0JlaWppbmcxCzAJBgNVBAcTAkJK
MRAwDgYDVQQKEwdPcGVuZGFsMRgwFgYDVQQDEw9PcGVuZGFsIFRlc3QgQ0EwHhcN
MjMwOTA4MTcxMTAwWhcNMjgwOTA2MTcxMTAwWjARMQ8wDQYDVQQDEwZjbGllbnQw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD0IaWG1E4GuXI3FEiYCj0Y
LGt0Rx8OOeWay5DMPFtICQ2jwXwV3tcz7IZCtsq08osyrYyZyv8zWvyfvESImhxG
rkCzHHh/pfBwfo0I7FQBI0YKRId4rVi8jZE5VRr1huhpHIU5LEcouSJtFxcHopB7
8VLxoJCOgoS/io6z8nxvIrAvuG9/JcM6AD7+DEjkfyr3nujIuOT0GZ/KTgZ5pw5+
ncF/aXlcRCDasC78qK57ryLhoDBW09M3ZKN37j+XQciUDcD+geauSn7ir64MaLW8
wZgxPiBHBft1oB8/HntZu8E4+aJ0pOinknM8t3N1EwmqJ9P/6wiSpXocRsfDtgaJ
AgMBAAGjgYMwgYAwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUFBwMC
MAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFFZiVWlCfpDqvOsg7ygApUiSQkRMMB8G
A1UdIwQYMBaAFDAtw/yFYwW5kXA2L/W3egibzNWiMAsGA1UdEQQEMAKCADANBgkq
hkiG9w0BAQsFAAOCAQEArPCvyPtW8Yv4F2F1o8WLr/4cO0F6R7xE36w45xd8PdDy
Op3Dg4jsNuFIOc7U58pNKAfOeUCeE0RAGEiwJ6OY0UeVLoN+huQO8/NVmzQq/JPm
zThUYdCqR2Eltnzkcrutcg+cug0uRvqpjh1M+WBM/xSFhHtYRhvCsLOkbeXF1kx9
JqiqerdcYPgojFOOFLMIjUBDurXjf94RX47OCRQDDwT01EIEuln1PB2m0d07dTlg
1fQM9MrgWj66BUT55cHqCHVyHe/iWKVvIQTgCNdnCJt9fztkyP2t++U0NfuPVbSs
nLZIqBBfYa9fzOzngOiXR9zsJyPaiiTZ3sTAu/17eg==
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions core/src/services/tikv/fixtures/ssl/pd-server-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAzveCV4rt8Z9Vu61lSMJGZ+DcqcIhgrUmgdnbBfoFLxJiBGyj
tV6YXQ6W/NJ/Mn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QCMSyt57r
pzD0M0iMbKHSlAtETr962GboXecWdXzAa/vRWyqCorBwEECwGUh6EiU8m5EjrecY
skoYFtAAe5z+pWZpYphRCBzBAoGAQRcadHP/1vgxSmKQfU0tSBJVnfoOzKsQfl0+
ywJtCxfTZ2L+klbCW5hQOVPXWV/HhsUCh3LSYMcklNBYJR2pQIgEIlJI3Hl9Ju3k
85WiIqBgz5LyC8UIo6YdMW/V4ZXRMB/4F7BvcrbH3oA/sQBPY7Ze6jzQ/wwbRvtV
K1c6ZrkCgYAIPRMspvc47aSgwAOCW9WgFBWBdSB1gv/FXli8KikZ8rP1c084wZnZ
WWzgivb/ZkRlD0sKDdq8W/5BQKczCwJ8lM57yDau5F95yLzZBtSc4QBlKKfnArRv
sp+bxynBBGfCHbE/iqYtKaK5Zsg145WcIsDnbDf8OKK9/i3ZdSpXjA==
-----END RSA PRIVATE KEY-----
21 changes: 21 additions & 0 deletions core/src/services/tikv/fixtures/ssl/pd-server.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDjDCCAnSgAwIBAgIUFVn3GLrU365PDFT8/6bivV2z+9AwDQYJKoZIhvcNAQEL
BQAwWDELMAkGA1UEBhMCQ04xEDAOBgNVBAgTB0JlaWppbmcxCzAJBgNVBAcTAkJK
MRAwDgYDVQQKEwdPcGVuZGFsMRgwFgYDVQQDEw9PcGVuZGFsIFRlc3QgQ0EwHhcN
MjMwOTA4MTcxMDAwWhcNMjgwOTA2MTcxMDAwWjAUMRIwEAYDVQQDEwlwZC1zZXJ2
ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDO94JXiu3xn1W7rWVI
wkZn4NypwiGCtSaB2dsF+gUvEmIEbKO1XphdDpb80n8ydupn39byz9LLVVr82d3N
jtKzhxtqfgradrc6RqtZzqNMMMKHZ2xvESfK5KKPzbubL6Tx8kyyuqp6d8b80pRX
9zgPPdWDqNUf54Sl5ERsr6TMsskZrlMoCMshUjLBNe3aCeVoXdLVc2KjCsXaKVfW
uNGhVuc93xGAl9PV3LjQz9OWIWVp+95glMxqCvNlnfoqBbkNj53fVOa3gLdFSTZ8
48Z3q1BxYjdd5UctonhoUsi2KLmVGin/5Ic7pB/zrbP5vckrqMjNySUG/L9qLAgs
TZ0hAgMBAAGjgZEwgY4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUF
BwMBBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQM8rpNIf2l6T9r
zk/FT7w4+OjJTzAfBgNVHSMEGDAWgBQwLcP8hWMFuZFwNi/1t3oIm8zVojAPBgNV
HREECDAGhwR/AAABMA0GCSqGSIb3DQEBCwUAA4IBAQB9YsLBHn8KWN770kL1gkNy
i1LTn/G6RXi1wsss50a4ZcjgHoHCYjtHLqMrFQCvfdCrHo8VkXWLn3+SkrmzImc7
cZypvcpJhufxE0VDZON/zDdOhPGoBGTfhNv22uXsAAa1beBkRP/F3wIxwFaF0szR
x2RcALCm/wcehd+fj+kd5lEwCu/F8lVV3CwA8L0tb2HdtIH3mgx0o/E1jt+5XEnH
nWmBNVUl8btTJQEjdNnr5E/me39g98QA1NewtQVqlvQm1GM4YfX1m5gre4PtlAJ4
Nm1hEpEGRUzF3J1emOLqfRCXfXmkdYWh3L62f56LfUOKUwv3rdkBpYkUYtQw+vZY
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions core/src/services/tikv/fixtures/ssl/tikv-server-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAxhY5xyxNsmPJwqOGkBXOvC7+kfNild04ly4d7VC7vqwyZC0b
BrBT9qzkvl7f2zKs8bfbR0PmFeZyO8UFY082fULceKb9UP5sXGFakN/AAihwXOpG
RdNjuQlaA7bQQ5O8wZa6IrMNCkEhjKHJwpRSnj3vUU9JV2Ug7islJaBr9B2ubCb2
fJ3m8GQw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1VqxAsqMJQEh03q6Dpzs7NacytD7OADkJT
D/oYmXiA2INI8ensMoPo0iWse4zlWcduROPeZhZE2GnpWdgLpByqdwjai0OQQp/N
0lfTNoZgnO31XXCtqY/Eef2CvhP0mvezX+8Z30gY2n5iHPJ9jET80M+Qf5G7OPkm
x8nFdQKBgHSGulWtZbRuuXymi/atXJCKi3VNOktzDjGMPLTrU16K9jxAwOn1b4YY
cJsrznNdNZN3anVHDWLsYBTIO69lw7EKCKHESTl8+C1mQNW7CJGmC/DEEQYiG3Hu
hF2jdFw4DUjOPg29QkHx1Fd3/3trjR1yfjg353Mxwax2fLPs9xhx
-----END RSA PRIVATE KEY-----
22 changes: 22 additions & 0 deletions core/src/services/tikv/fixtures/ssl/tikv-server.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDjjCCAnagAwIBAgIUF/Vdy9TFj5hSk1J+2i6BRAGpEbcwDQYJKoZIhvcNAQEL
BQAwWDELMAkGA1UEBhMCQ04xEDAOBgNVBAgTB0JlaWppbmcxCzAJBgNVBAcTAkJK
MRAwDgYDVQQKEwdPcGVuZGFsMRgwFgYDVQQDEw9PcGVuZGFsIFRlc3QgQ0EwHhcN
MjMwOTA4MTcwOTAwWhcNMjgwOTA2MTcwOTAwWjAWMRQwEgYDVQQDEwt0aWt2LXNl
cnZlcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMYWOccsTbJjycKj
hpAVzrwu/pHzYpXdOJcuHe1Qu76sMmQtGwawU/as5L5e39syrPG320dD5hXmcjvF
BWNPNn1C3Him/VD+bFxhWpDfwAIocFzqRkXTY7kJWgO20EOTvMGWuiKzDQpBIYyh
ycKUUp4971FPSVdlIO4rJSWga/Qdrmwm9nyd5vBkMBspmT2+gQ5CrjbcLmAO769o
ZacCnMqe6SJ0jWQVBA3q6qCusJ9lS8URWYyJDYGw24DtOD+URNMogy0T+VhroNaO
R4TnZJ6wh20Mcn+bvNiB4wGZ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