Skip to content

Commit

Permalink
Add TLS tests and docker compose setup, update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaelabalas84 committed Sep 20, 2024
1 parent 9891fc9 commit 8cbe14e
Show file tree
Hide file tree
Showing 19 changed files with 557 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dev: $(KIND) $(KUBECTL)
@sudo $(KIND) create cluster --name=$(PROJECT_NAME)-dev --kubeconfig=$(USER_DIR)/.kube/config
@$(KUBECTL) cluster-info --context kind-$(PROJECT_NAME)-dev
@$(INFO) Installing Crossplane CRDs
@$(KUBECTL) create -k https://github.com/crossplane/crossplane//cluster?ref=master
@$(KUBECTL) create -k https://github.com/crossplane/crossplane//cluster?ref=v1.16.2
@$(INFO) Installing Provider temporal CRDs
@$(KUBECTL) apply -R -f package/crds
@$(INFO) Start Provider temporal via: $(GO) run cmd/provider/main.go --debug
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ spec:
Provider Credentials with TLS:
```
{
"HostPort": "temporal:7233"
"UseTLS": true
"CACert": "-----BEGIN CERTIFICATE-----here insert CA certificate-----END CERTIFICATE-----"
"CertFile": "-----BEGIN CERTIFICATE-----here insert certificate-----END CERTIFICATE-----"
"KeyFile": "-----BEGIN RSA PRIVATE KEY-----here insert key-----END RSA PRIVATE KEY-----"
"HostPort": "temporal:7233",
"UseTLS": true,
"CACert": "-----BEGIN CERTIFICATE-----\nhere insert CA certificate\n-----END CERTIFICATE-----",
"CertFile": "-----BEGIN CERTIFICATE-----\nhere insert certificate\n-----END CERTIFICATE-----",
"KeyFile": "-----BEGIN RSA PRIVATE KEY-----\nhere insert key\n-----END RSA PRIVATE KEY-----",
}
```
# Troubleshooting
Expand Down Expand Up @@ -205,3 +205,14 @@ Start temporal environment for tests
```
sudo docker-compose -f tests/docker-compose.yaml up
```
## TLS

In case test certificates are expired, run `bash certs/generate-test-certs.sh` and new certificates will be created.

Then, edit `internal/clients/service_test.go` and update the new test certificates to `jsonConfig` after you replace the newlines with `\n`.

```
awk 'NR > 1 {printf "\\n"} {printf "%s", $0} END {printf ""}' certs/client.pem
awk 'NR > 1 {printf "\\n"} {printf "%s", $0} END {printf ""}' certs/client.key
awk 'NR > 1 {printf "\\n"} {printf "%s", $0} END {printf ""}' certs/ca.crt
```
31 changes: 31 additions & 0 deletions certs/ca.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN CERTIFICATE-----
MIIFRTCCAy2gAwIBAgIUTfLoHTSYNEx0LXYnju+wJF6EP4EwDQYJKoZIhvcNAQEL
BQAwMjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldBMRYwFAYDVQQKDA1UZXN0IENB
LCBJbmMuMB4XDTI0MDkyMDExMzY1OFoXDTI1MDkyMDExMzY1OFowMjELMAkGA1UE
BhMCVVMxCzAJBgNVBAgMAldBMRYwFAYDVQQKDA1UZXN0IENBLCBJbmMuMIICIjAN
BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq2+PV/h7kTWoUI3KhadR5yvrnqW4
/NiBAV6TToxMK97KSs2J5EAIKjtg3o+1vL2Tkc6mOAegqGLsVWwpxUCTChBPDjiM
LsBx1c7uTU0m7eDIBoMDMNy5Vy+tvT5vey+pdM4KORdzHIkjctilWWdJuUF+qRzp
ijgIruNsEj5CbYz57xXoS3wErfJlUu9GX+LFizR2OQMvIiF09dTbTyQ1a2bOmQYD
8nVz7yo7ENCJlPonQYkSBfVuXIyR5LTouPsv2DYNGlT63rwEY3t0aq23Datmv9QP
2k1jCMz3HcTUFHa+ErSd6opJYr9Fw+J6k/Ifho8xq3R6iJ5D9Wk15ozPA9tdZt/T
vBmDb0QD9SvIirLuDBZ2eHbdCG2uLq/tLf87f04y3Q4VcAa0CCp+mGCMil9pnSki
LqmcD0iAApQU3RtdX6uqV1TC9oK7UYomJY4nB2EwneIpYDupQPjZhCtl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: 52 additions & 0 deletions certs/ca.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCrb49X+HuRNahQ
jcqFp1HnK+uepbj82IEBXpNOjEwr3spKzYnkQAgqO2Dej7W8vZORzqY4B6CoYuxV
bCnFQJMKEE8OOIwuwHHVzu5NTSbt4MgGgwMw3LlXL629Pm97L6l0zgo5F3MciSNy
2KVZZ0m5QX6pHOmKOAiu42wSPkJtjPnvFehLfASt8mVS70Zf4sWLNHY5Ay8iIXT1
1NtPJDVrZs6ZBgPydXPvKjsQ0ImU+idBiRIF9W5cjJHktOi4+y/YNg0aVPrevARj
e3RqrbcNq2a/1A/aTWMIzPcdxNQUdr4StJ3qikliv0XD4nqT8h+GjzGrdHqInkP1
aTXmjM8D211m39O8GYNvRAP1K8iKsu4MFnZ4dt0Iba4ur+0t/zt/TjLdDhVwBrQI
Kn6YYIyKX2mdKSIuqZwPSIAClBTdG11fq6pXVML2grtRiiYljicHYTCd4ilgO6lA
+NmEK2XEYlujGQKllHv1NN7V26hQpLqybQuIlnrl5eYAMsl6qs0GhKF4cWtA5hwV
nlt+gDze4SFw2fDg2qEqsibYvk1lk4hM2+ewBIZ+0vfw7YWR+VTbilgwhF/irYih
MZLFdvMwyi94pfCnYU9RQS/8RUls9adYooBNEljoElocQ/OxKpRfYZoSrFA+xWKB
Z/3DJVx/heuQg/iVs21bJEheLcPeFwIDAQABAoICAEU86rtAR4OnlKFoCr29DGad
he1OiC5SMJQBguPr5M2pDrF0XrcZJ1MLJT3t85vVQvbV66rgZcHsJgAADcS1Jk2f
tZYMP42YOsF78CG3Qbw8Fv0OR6kh1BcC0hwGzdaGMt3SYy2Yq2yAdJkrJ2i6vvs7
mPCrFSU2KUec4SZjD8gX8k9d3TIzVd588fAzZAxQ1bC5kO/Iue4Cbi7k92f4uzxz
yofh9pEjX53dw/owBwjsmRMuTWGrtJV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ELihHH1gl7vcLVgNZygTZppgH
3vFcwPypj4FnAW2jHERczK/qW8aUAA==
-----END PRIVATE KEY-----
1 change: 1 addition & 0 deletions certs/ca.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
108EE74BEE2DF16DC7606352858393CE52087685
17 changes: 17 additions & 0 deletions certs/client-cert.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[req]
default_bits = 4096
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[dn]
C = US
ST = WA
O = Test Client, Inc.
CN = localhost
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
IP.1 = ::1
IP.2 = 127.0.0.1
28 changes: 28 additions & 0 deletions certs/client.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIEzjCCArYCAQAwSjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldBMRowGAYDVQQK
DBFUZXN0IENsaWVudCwgSW5jLjESMBAGA1UEAwwJbG9jYWxob3N0MIICIjANBgkq
hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAt9KS+Cgaqaj1YdQw0Pkzb3lij3Iqt37p
WMWxiqo/8ujUYRxOdhz9J320wBVCqUENnag8bvXmJxmRaeBC7rCCxoNXxsEuWAU+
iN4dJvmjSbyJ+xoe9SyNfo/D4BxVtuhGxBp1g6doLnpC69priIK3k7uvP0bhP8hS
ahSit4FdXg5me4zq1FHWbTJ9Aw5Cx8x2pENvPAwjhgOPF7WhJ2Qw0b5aSP2bzJiK
PRswOKU3sCqbkio93RhkoTfX9SlUoYuwIC0UO1+9v8rNI/AzaXKOFYfGf8wo76ec
E/TSOrfbgbcFbcHfDi/i25Z2kz+B33rhu8B1hgqOscDLKbIo5c3pdMPskL7G3ac4
Og3MLymvygYXi2hC2W3UpH1nerghrwRNWohTnLHAwU6U/i9QjGI5WNAokitYJNau
O9a8r0nP21eWpbjCVLOsZaoN5blxlnzVpIyC8IFPpKgP428iivAqA43WeTo1zeH2
ZGw3KzT+UDCBvgkgeZQtI4HacXSkMDyfGwFvDAHbX31y9/Frjead/BsBr8DQxVqU
+eMa46OmRey5jcKs/KUg5MAwLQKcrB1mr5kJVgSkBAsgBBoXvB05S9tM4YPgHj/d
57U2XkOJ8pp8MsoC6VlwQrCGC/UMnk0/zIctjJszdQ6yGVQeEJEpQQuve8+VbHBw
z6uyr85++CECAwEAAaA/MD0GCSqGSIb3DQEJDjEwMC4wLAYDVR0RBCUwI4IJbG9j
YWxob3N0hxAAAAAAAAAAAAAAAAAAAAABhwR/AAABMA0GCSqGSIb3DQEBCwUAA4IC
AQCDI8Fws7B0/aEaHP9s39PUao5pS6bHC81DSQkOTKxMTsjnGjztGruL81t3XQHp
U8noJD6BDLHIn9M0KnvBl0FwvmQK1ef8K10xKYE7cxnl5xljclRcDtEJdbKbOpZq
RXc93WLyzJ4DiMhim56PejKjM9gF4cjTPxlfZMP2jGYGbTt7YU8ELUb/M99/Yefr
u6od8ij7z1dUej4P5TCrG3Yz9XQi5aKg6EPfEanY6GLV6mhyrIhggtzoJnXZ0myc
jUBmn5Cj9lg7MvP7Pl9+V3izV83uUgKKHEJqWB3XUaMzsOLLQiihCXT4PDc7tLDG
EcovYrehnho0AZLaaoRoUlV98efC/+w30SOav/aSMxwmYM6ZRnLHKbtMQEofBGEV
UpoN4w0nq7cGV5xas8XecVjFSbfPcY63LsUyUiEO0w2IaqMqPN5xlXh4jrPYlsCz
bhXiP9C2J6DgMiXKlJsQtX4AZwW92ZfTdpG1QXM0cw1EqcZimr1y+KJi3GEcrcpF
BraWnztQra6s1AbyEkv10YP377w+1DO6A37So4gQSFKSsLVZnrX2R5ovBKHZaAoX
++3YEZpsBZ5OGX3z4WBfOsTc01ES8o8TnllH8nqW75FyooNjKkVmzIoqB3BnY5dm
t5NEO9tIXpcT6hK6LkASYoWMzViuXURGRrZSdiFAN2QuIg==
-----END CERTIFICATE REQUEST-----
52 changes: 52 additions & 0 deletions certs/client.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC30pL4KBqpqPVh
1DDQ+TNveWKPciq3fulYxbGKqj/y6NRhHE52HP0nfbTAFUKpQQ2dqDxu9eYnGZFp
4ELusILGg1fGwS5YBT6I3h0m+aNJvIn7Gh71LI1+j8PgHFW26EbEGnWDp2guekLr
2muIgreTu68/RuE/yFJqFKK3gV1eDmZ7jOrUUdZtMn0DDkLHzHakQ288DCOGA48X
taEnZDDRvlpI/ZvMmIo9GzA4pTewKpuSKj3dGGShN9f1KVShi7AgLRQ7X72/ys0j
8DNpco4Vh8Z/zCjvp5wT9NI6t9uBtwVtwd8OL+LblnaTP4HfeuG7wHWGCo6xwMsp
sijlzel0w+yQvsbdpzg6DcwvKa/KBheLaELZbdSkfWd6uCGvBE1aiFOcscDBTpT+
L1CMYjlY0CiSK1gk1q471ryvSc/bV5aluMJUs6xlqg3luXGWfNWkjILwgU+kqA/j
byKK8CoDjdZ5OjXN4fZkbDcrNP5QMIG+CSB5lC0jgdpxdKQwPJ8bAW8MAdtffXL3
8WuN5p38GwGvwNDFWpT54xrjo6ZF7LmNwqz8pSDkwDAtApysHWavmQlWBKQECyAE
Ghe8HTlL20zhg+AeP93ntTZeQ4nymnwyygLpWXBCsIYL9QyeTT/Mhy2MmzN1DrIZ
VB4QkSlBC697z5VscHDPq7Kvzn74IQIDAQABAoICAEIwzmASHMuzvav82pkc6qL8
u/s4Gl6Zkc+32/644C8JHJRdO3l3ZcbHEoNKBIdql8sJzb0MyVOR9tT/fkpxf52Y
pM46OIRUWxiwliG3KU9/VtX2qWgSI18LyHXV7h1fFUA+4MrHyJFXz+oaa7crjovh
PLDVxn0PlnGBPbhDGkooeEmLy/EpCMOoNvCXPX+xRZVPfOnL2yzB8lAQxFcpUhTs
bJk0zNmGodxwAlSbVWqXZQ5kLIOE6ZNNxvMN713+LSzg3pS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gWfSEI1d
jLG9z3ZTkwHuHm/qkFZG/RKSsOgw
-----END PRIVATE KEY-----
32 changes: 32 additions & 0 deletions certs/client.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-----BEGIN CERTIFICATE-----
MIIFejCCA2KgAwIBAgIUEI7nS+4t8W3HYGNShYOTzlIIdoUwDQYJKoZIhvcNAQEL
BQAwMjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldBMRYwFAYDVQQKDA1UZXN0IENB
LCBJbmMuMB4XDTI0MDkyMDExMzY1OFoXDTI1MDkyMDExMzY1OFowSjELMAkGA1UE
BhMCVVMxCzAJBgNVBAgMAldBMRowGAYDVQQKDBFUZXN0IENsaWVudCwgSW5jLjES
MBAGA1UEAwwJbG9jYWxob3N0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC
AgEAt9KS+Cgaqaj1YdQw0Pkzb3lij3Iqt37pWMWxiqo/8ujUYRxOdhz9J320wBVC
qUENnag8bvXmJxmRaeBC7rCCxoNXxsEuWAU+iN4dJvmjSbyJ+xoe9SyNfo/D4BxV
tuhGxBp1g6doLnpC69priIK3k7uvP0bhP8hSahSit4FdXg5me4zq1FHWbTJ9Aw5C
x8x2pENvPAwjhgOPF7WhJ2Qw0b5aSP2bzJiKPRswOKU3sCqbkio93RhkoTfX9SlU
oYuwIC0UO1+9v8rNI/AzaXKOFYfGf8wo76ecE/TSOrfbgbcFbcHfDi/i25Z2kz+B
33rhu8B1hgqOscDLKbIo5c3pdMPskL7G3ac4Og3MLymvygYXi2hC2W3UpH1nergh
rwRNWohTnLHAwU6U/i9QjGI5WNAokitYJNauO9a8r0nP21eWpbjCVLOsZaoN5blx
lnzVpIyC8IFPpKgP428iivAqA43WeTo1zeH2ZGw3KzT+UDCBvgkgeZQtI4HacXSk
MDyfGwFvDAHbX31y9/Frjead/BsBr8DQxVqU+eMa46OmRey5jcKs/KUg5MAwLQKc
rB1mr5kJVgSkBAsgBBoXvB05S9tM4YPgHj/d57U2XkOJ8pp8MsoC6VlwQrCGC/UM
nk0/zIctjJszdQ6yGVQeEJEpQQuve8+VbHBwz6uyr85++CECAwEAAaNwMG4wLAYD
VR0RBCUwI4IJbG9jYWxob3N0hxAAAAAAAAAAAAAAAAAAAAABhwR/AAABMB0GA1Ud
DgQWBBSyv1xsyjmiMpxPoDwXyqv3m40etDAfBgNVHSMEGDAWgBS955SwUo8eJMKU
K5pJCJ7dgEgPpTANBgkqhkiG9w0BAQsFAAOCAgEAgvdRnBGB5mqtcUaYeKFBsl0w
RDUOOQpMXJ1KF4oUovJnAIG0RlY93+ULi78riTfHoHZ0spQCL+cplW2PPJaWIaOr
nYGjr92EoR2wQ+wU1sCbq+q+UbzNc3tB1OcYXDbWZew1mkWQpLi/WW4n2rqJM81H
Vb1AqlAFXEf20Z7+2L3gPzz7tq8uaGffiTAO1GLUNd3XcnMiXwvI9MzVJfIwOQyb
iVFHKI4BLYNV8M3rJp1bs0C4jdFxhP5wR+X3F9UftgmKjIjBVV4DvcP6Otwk/qPi
vBd7Zbe4Don4tRr/ihQZ9AE0UghloKfic+xadEkDQsiZ4/VIVqWmRldyriDSsGKY
yayoukVPGQFvNw+4HUZPnpTwn16pn90k5MCEanVHo0MkXqnHziN+R8aV2nBbj1um
SS6oNUjxQENuQBSFXZjKurssLQVVqolBjI/phD5miY8FfAcxjnAcU/LuYrq75u8K
Fb5cO9ra19YmWtumMiabaoyVxjLLH/QYu6NMmVBa1NrLObz9UAIEUUbdWN05vPBK
iJuLXwD1XeBYxmjiI59cl/H2urpX20FxiHJeC3T49p/SiryixxK6fp+hnJNOfY75
QfccXTAFYngqrs7UGkiDn7AYEl2Ffv44CvWRvACIiL1TqxRgPdJZHceYqLwCfbgV
cmoFO2F27/Uo4XmKOgw=
-----END CERTIFICATE-----
Binary file added certs/client.pfx
Binary file not shown.
16 changes: 16 additions & 0 deletions certs/cluster-cert.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[req]
default_bits = 4096
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[dn]
C = US
ST = WA
O = Test Cluster, Inc.
CN = localhost
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
IP.1 = ::1
28 changes: 28 additions & 0 deletions certs/cluster.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIEyTCCArECAQAwSzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldBMRswGQYDVQQK
DBJUZXN0IENsdXN0ZXIsIEluYy4xEjAQBgNVBAMMCWxvY2FsaG9zdDCCAiIwDQYJ
KoZIhvcNAQEBBQADggIPADCCAgoCggIBAKvqyPeaqVo4f2qv18FFwcmg2OVjRWJJ
o2rC1A2ZvFjcQwF7e3k4DYM/g1NCIbEV/O3d9/FfFg32x+KJxU7SRFd/soMl/BXz
x6uipHZFfIrTzkFantaVLvVGOuGg1Ho2qDl8vW9JhHE9J/Jrc7c+uDDBDuBIEMUH
OSa7Qn5+U1FUjidQB0/KkK/viZHGsmL6mWQb8lTAATRPx5mN1IX2rsyYIeSHFflg
A2JMz5uVYoZ5k6Rh27oL5vFM0aVkUQMs6iAtWu5CseMjPBgatruBw0qYZo9cfKlr
/1C5dFKWLfYzI5tX3PsUreP4RbD24E0bj18kRiaY/RG9ZBrCVe4Dx3IXUvQAZ25J
XMopWL5Vj74IYbFY7EgZ9rS3t/5YfSJyZ8Qz636qqz0GcQTBI86XxtVSICcbC6ah
YRnlCAdrFkmFiY8eek/8RoRrE1Rt1bi2w3PR2rgDUx4UeTIPDr8X5eOKMEGfdNJO
t2+wuigZHyaCl6SoEAVsnl7BqhmNeNuPkj2yFswqj/RBwlZM/QpZWCTbQ4+4ctEV
vesVldbOdTHR7/4QuoRo1Ej+lhO6JzL2d9qnLr0/HF7fsZTH0o2ToGYOmZqcyGaM
EpHEoIUcY3Lw4uiN9NFAFaqjG/59jt+xqeoZ0XHzqozfCM7Hi88pZtPjQu1vvt8t
vlGS9VfPX54TAgMBAAGgOTA3BgkqhkiG9w0BCQ4xKjAoMCYGA1UdEQQfMB2CCWxv
Y2FsaG9zdIcQAAAAAAAAAAAAAAAAAAAAATANBgkqhkiG9w0BAQsFAAOCAgEAib8z
BbN6Fg6gEcbQwWOHQPRqa5Wuzi9PIXLQL8j1FU94mMVQPJ0M9h3VA/D5XzCpMGTe
HLdcMf5srFl6QYMs758TWYcBvXqdhOhxrprqr9VEK8ac+3BGoThfE5O2nwzeqU7k
x0pqIjmX/wNAAG9zf+SI3qp+XyfequcjXIU4lp0SBW1NZgYuq5tsSc5vhYJ3PxCO
NQ+x6hZKDKGxN31LOP1xCbHdVYLE+pOeV5CmwJPh7xETilkV4+f2pN5kj7P97oYZ
Onn7XzBHtLYfJ3lx10uhxtVNSQAQzm7XemkiBNUTc+pCHWPIo9AVVPYuw4qCUEqf
F7ivaz1tPESh1ngfxB/PM80VFPhaQLDQcHgURFH/3WZh7gEe/VrSTQtJ2u/8q78z
v41QWy6ljEIgfJ0hKcivoKSjU3qXwFuUhLeoJoYusRPID96h9Eeabgs3Xa0Eqtqc
9UeLNZE+DUBrZWzNMG1KgcSp3QjqIHnIzYaiWDX5qnkYnUATxfOa2G8Is4b4A3f4
UwemMZEI+MncLaFwtJEp9/UlBqkf+LiSuAZ3f/LeNrOUEj1vT2CRJNvzRSRx2lZb
oYO5D96MV9TKreED+Y2EKq3gyPtA3GdymkycXEn8ejTyj04T7ALCAUmwaC05ipp5
4CmlTM61isXL1nsUlUGyDTb8WudvBVqBjHILQyI=
-----END CERTIFICATE REQUEST-----
52 changes: 52 additions & 0 deletions certs/cluster.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCr6sj3mqlaOH9q
r9fBRcHJoNjlY0ViSaNqwtQNmbxY3EMBe3t5OA2DP4NTQiGxFfzt3ffxXxYN9sfi
icVO0kRXf7K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75QRvNzR/VQot7GJZ//xcXE9PBpr+BvDXcO0PWmidSz
MJke7hGLytqTzv8WvdLiZVSIPYgg4NObdYtipFP0kV/BPlB5x75h3hZR4pkhWYwk
l9uWrGh3SKxTQYIbylgj79yGzAkWH3ng+YKCKtICjx+Nj44BUQ2gGLQWFcQ6JRWz
ckaczi2vTefZ6quAHUEP5wtbbQ8+6Zs87nqfKyCPAoIBACTIKpwJySFfKgXeSoJ3
CNZ7u6W1TwHfM8rw6VsXwb5VGysl4jt4T6DMIHJkf1xu/QFdyInwZZRyji/nkuLm
dazhxGHfZMTq3sTs5JhSa1Li3tGqpXW/bOACoZTKM73WOGfop65czp8ur1jwz01s
O6yeloPceFjHoRfkVoYtQ1ZQwz8xMtaDUd27/YIIX9tv91djdrxB7dpKqE7pKJRE
z55t5wxQ1FQGfabzj+NLrW+KdYTOzxUsyiII9w0YJmMzfhRTXW/KMD6EGjT4raQJ
oxu4GrfneK0ZhRZPYz6Th/UVaCPlNok3qcy2h8wh4wYGDBKmLlSs5aS3isHCRxkv
72ECggEAZ2TD9Q2WekzjSDwhVgXARtWsd5lPE0o4hvN2gwbRy+DL90HOHsVXfIZZ
OvtVrSwd+Jq5MtuJV2DVx7AsyafqMkNL+l6eitHTJjfItMQYK1zjDJGkDwNRl3T3
zWu0qrga308JwMu8jvncaX0qCIPCdY2l56tIVquqSxviEC899o83U7tosHqOxS+5
Et7VPl+vtw/uT379zudbuxRRlSibdg8Y29Td9KbJGystrtU/lXJ1fUxmVrz1At33
lrTVMpeOr9UjHsnVC9xngnGnfFBTkctvhBvdDlylTbZ0z84mF0Vhq1wuVoI0AZgu
2/GlTo9c9RvB9guyoeGhG7n9TqqSxQ==
-----END PRIVATE KEY-----
Loading

0 comments on commit 8cbe14e

Please sign in to comment.