From e611d0c489a101399dcc7b07f0c8bf635a26e4e4 Mon Sep 17 00:00:00 2001 From: krestofur <83723727+krestofur@users.noreply.github.com> Date: Wed, 29 Sep 2021 16:43:39 -0700 Subject: [PATCH] Add CRL Enabled Credentials to test folder (#27436) --- test/core/tsi/test_creds/crl_data/15e5c67a.0 | 1 + test/core/tsi/test_creds/crl_data/26fefe27.0 | 1 + test/core/tsi/test_creds/crl_data/BUILD | 24 +++++++++ test/core/tsi/test_creds/crl_data/README | 54 +++++++++++++++++++ test/core/tsi/test_creds/crl_data/ab06acdd.0 | 1 + test/core/tsi/test_creds/crl_data/ab06acdd.r0 | 1 + .../tsi/test_creds/crl_data/ca-openssl.cnf | 17 ++++++ test/core/tsi/test_creds/crl_data/ca.key | 28 ++++++++++ test/core/tsi/test_creds/crl_data/ca.pem | 20 +++++++ test/core/tsi/test_creds/crl_data/current.crl | 12 +++++ .../tsi/test_creds/crl_data/demoCA/crlnumber | 1 + .../test_creds/crl_data/demoCA/crlnumber.old | 1 + .../tsi/test_creds/crl_data/demoCA/index.txt | 1 + .../test_creds/crl_data/demoCA/index.txt.attr | 1 + .../test_creds/crl_data/demoCA/index.txt.old | 0 test/core/tsi/test_creds/crl_data/revoked.key | 28 ++++++++++ test/core/tsi/test_creds/crl_data/revoked.pem | 18 +++++++ test/core/tsi/test_creds/crl_data/valid.key | 28 ++++++++++ test/core/tsi/test_creds/crl_data/valid.pem | 18 +++++++ 19 files changed, 255 insertions(+) create mode 120000 test/core/tsi/test_creds/crl_data/15e5c67a.0 create mode 120000 test/core/tsi/test_creds/crl_data/26fefe27.0 create mode 100644 test/core/tsi/test_creds/crl_data/BUILD create mode 100644 test/core/tsi/test_creds/crl_data/README create mode 120000 test/core/tsi/test_creds/crl_data/ab06acdd.0 create mode 120000 test/core/tsi/test_creds/crl_data/ab06acdd.r0 create mode 100644 test/core/tsi/test_creds/crl_data/ca-openssl.cnf create mode 100644 test/core/tsi/test_creds/crl_data/ca.key create mode 100644 test/core/tsi/test_creds/crl_data/ca.pem create mode 100644 test/core/tsi/test_creds/crl_data/current.crl create mode 100644 test/core/tsi/test_creds/crl_data/demoCA/crlnumber create mode 100644 test/core/tsi/test_creds/crl_data/demoCA/crlnumber.old create mode 100644 test/core/tsi/test_creds/crl_data/demoCA/index.txt create mode 100644 test/core/tsi/test_creds/crl_data/demoCA/index.txt.attr create mode 100644 test/core/tsi/test_creds/crl_data/demoCA/index.txt.old create mode 100644 test/core/tsi/test_creds/crl_data/revoked.key create mode 100644 test/core/tsi/test_creds/crl_data/revoked.pem create mode 100644 test/core/tsi/test_creds/crl_data/valid.key create mode 100644 test/core/tsi/test_creds/crl_data/valid.pem diff --git a/test/core/tsi/test_creds/crl_data/15e5c67a.0 b/test/core/tsi/test_creds/crl_data/15e5c67a.0 new file mode 120000 index 00000000000..c4afefdebe4 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/15e5c67a.0 @@ -0,0 +1 @@ +valid.pem \ No newline at end of file diff --git a/test/core/tsi/test_creds/crl_data/26fefe27.0 b/test/core/tsi/test_creds/crl_data/26fefe27.0 new file mode 120000 index 00000000000..6b2cd064e1e --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/26fefe27.0 @@ -0,0 +1 @@ +revoked.pem \ No newline at end of file diff --git a/test/core/tsi/test_creds/crl_data/BUILD b/test/core/tsi/test_creds/crl_data/BUILD new file mode 100644 index 00000000000..e037305e9b1 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/BUILD @@ -0,0 +1,24 @@ +# Copyright 2021 gRPC authors. +# +# Licensed 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. + +licenses(["notice"]) # Apache v2 + +exports_files([ + "ca.pem", + "revoked.key", + "revoked.pem", + "valid.key", + "valid.pem", + "ab06acdd.r0", +]) diff --git a/test/core/tsi/test_creds/crl_data/README b/test/core/tsi/test_creds/crl_data/README new file mode 100644 index 00000000000..708e74af3c2 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/README @@ -0,0 +1,54 @@ +The test credentials have been generated with the following +commands: + +The ca is self-signed: +---------------------- + +$ openssl req -x509 -new -newkey rsa:2048 -nodes -keyout ca.key -out ca.pem \ + -config ca-openssl.cnf -days 3650 -extensions v3_req +When prompted for certificate information, everything is default. + +valid is issued by CA: +---------------------------------------------------------------------------- + +$ openssl genrsa -out valid.key.rsa 2048 +$ openssl pkcs8 -topk8 -in valid.key.rsa -out valid.key -nocrypt +$ openssl req -new -key valid.key -out valid.csr + +When prompted for certificate information, everything is default except the +common name which is set to valid. + +$ openssl x509 -req -CA ca.pem -CAkey ca.key -CAcreateserial -in valid.csr \ + -out valid.pem -days 3650 + +revoked is issued by CA: +----------------------- + +$ openssl genrsa -out revoked.key.rsa 2048 +$ openssl pkcs8 -topk8 -in revoked.key.rsa -out revoked.key -nocrypt +$ openssl req -new -key revoked.key -out revoked.csr + +When prompted for certificate information, everything is default except the +common name which is set to revoked. + +$ openssl x509 -req -CA ca.pem -CAkey ca.key -CAcreateserial -in revoked.csr \ + -out revoked.pem -days 3650 + +$ openssl ca -revoke revoked.pem -keyfile ca.key -cert ca.pem -config ca-openssl.cnf + +Generate the CRL file: +---------------------------------------------------------------------------- +$ openssl ca -gencrl -out current.crl -keyfile ca.key -cert ca.pem +$ openssl rehash ./ + +Clean up: +--------- +$ rm *.rsa +$ rm *.csr +$ rm ca.srl + +demoCA folder: +---------------------------------------------------------------------------- + +The demoCA folder contains files used by the openssl CA commands to revoke +credentials and create CRL files. diff --git a/test/core/tsi/test_creds/crl_data/ab06acdd.0 b/test/core/tsi/test_creds/crl_data/ab06acdd.0 new file mode 120000 index 00000000000..e375f5ab0d5 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/ab06acdd.0 @@ -0,0 +1 @@ +ca.pem \ No newline at end of file diff --git a/test/core/tsi/test_creds/crl_data/ab06acdd.r0 b/test/core/tsi/test_creds/crl_data/ab06acdd.r0 new file mode 120000 index 00000000000..2cf6617a426 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/ab06acdd.r0 @@ -0,0 +1 @@ +current.crl \ No newline at end of file diff --git a/test/core/tsi/test_creds/crl_data/ca-openssl.cnf b/test/core/tsi/test_creds/crl_data/ca-openssl.cnf new file mode 100644 index 00000000000..631ecb2e4be --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/ca-openssl.cnf @@ -0,0 +1,17 @@ +[req] +distinguished_name = req_distinguished_name +req_extensions = v3_req + +[req_distinguished_name] +countryName = Country Name (2 letter code) +countryName_default = AU +stateOrProvinceName = State or Province Name (full name) +stateOrProvinceName_default = Some-State +organizationName = Organization Name (eg, company) +organizationName_default = Internet Widgits Pty Ltd +commonName = Common Name (eg, YOUR name) +commonName_default = testca + +[v3_req] +basicConstraints = CA:true +keyUsage = critical, keyCertSign, cRLSign diff --git a/test/core/tsi/test_creds/crl_data/ca.key b/test/core/tsi/test_creds/crl_data/ca.key new file mode 100644 index 00000000000..853f98de794 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/ca.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDVeuZVtfjw6RmH +gSBxri+imN9XMC/2zrP6ZLeHVI8sTxNshDSfvtL50u41y0XK9WlAqpi+KTLHZv/v +Oymt9G+QpoVccaW/Ui8/bgmi39Fg+vdsz2ZTmEu5N7gDLgWh1MWs6MNmUM43ZRlB +v9A6pWYOTbHbv58aJdI1LmTLk+ZSqWmz9dvyaTF0q0i0gAdSQos/mJNDDIng6+zw +sR0N5U0Zj6PtvVJ8XJT3csvYXaPvTn/nF8szQn+06n/CDodhvEd4cRNDwm+t4U/L +0RrxfyZ9VmbdJ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qqulUIJ7mgjFwB21KFqRsq0NvW9y4 +plgd+PlXuYYBkvYfi/VXuRdBixGhtXEkdWNUbSmXAoGAVbeLCopMQ7SO1Cu5ETsN +Pc2ei4W0qO3B5WMC58R+A3q4m9a8sxatNaBW9L+4ohlVQiFGFEsjKl07FvWuSR8l +t4GWbULd5MW4QUuRDEcDr/cgsLdK6qWSyUoeHCoM317UXkhAufWTxXiS1ZZ4g9ZG +2g3HdQmD+yjBtjnMqSBA6DE= +-----END PRIVATE KEY----- diff --git a/test/core/tsi/test_creds/crl_data/ca.pem b/test/core/tsi/test_creds/crl_data/ca.pem new file mode 100644 index 00000000000..2a707783db2 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/ca.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDTzCCAjegAwIBAgIJANxWk51OgC+2MA0GCSqGSIb3DQEBCwUAMFYxCzAJBgNV +BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX +aWRnaXRzIFB0eSBMdGQxDzANBgNVBAMMBnRlc3RjYTAeFw0yMTA5MjIwNTIzNTda +Fw0zMTA5MjAwNTIzNTdaMFYxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0 +YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDzANBgNVBAMM +BnRlc3RjYTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANV65lW1+PDp +GYeBIHGuL6KY31cwL/bOs/pkt4dUjyxPE2yENJ++0vnS7jXLRcr1aUCqmL4pMsdm +/+87Ka30b5CmhVxxpb9SLz9uCaLf0WD692zPZlOYS7k3uAMuBaHUxazow2ZQzjdl +GUG/0DqlZg5Nsdu/nxol0jUuZMuT5lKpabP12/JpMXSrSLSAB1JCiz+Yk0MMieDr +7PCxHQ3lTRmPo+29UnxclPdyy9hdo+9Of+cXyzNCf7Tqf8IOh2G8R3hxE0PCb63h +T8vRGvF/Jn1WZt0nt1rC0IlwnIuZTzql3cQ1SBIoeNZ+3lrMvUUtShYArukf2w89 +4WRdfoSfRFUCAwEAAaMgMB4wDAYDVR0TBAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw +DQYJKoZIhvcNAQELBQADggEBALmcr+Xy7g6+HYL4US/YqD289Vi+9jbUbwZuVsfY +J3mKdExL5cYtqDGA6WCRdjDnebpGnOP2Ui+Hb32Guh2Z0upnde32WurxkbwEUx1C +TYwBpOqmL8PRg1J60MU+9l0TK/7y40JWLYEgKVN4wdhSjL916yH6jrsDDaRsR8eh +xzyB8FEmOQ8UbNB0J8S6G1RS2LpFna1dbq/+TBx/6GgxU7MgaQpvYKaD45ZzVaA2 +6zsOZgSHCHMYRf1iG7AKeLGACNSAIk2xiqsE8sV/k8rohIbJCQT/fqRvgYCWCAMd +/7YXQSi+M44wvyEw+jdHrBdn3BDwCd+tmikXkmbSIV9DqvI= +-----END CERTIFICATE----- diff --git a/test/core/tsi/test_creds/crl_data/current.crl b/test/core/tsi/test_creds/crl_data/current.crl new file mode 100644 index 00000000000..ca658725405 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/current.crl @@ -0,0 +1,12 @@ +-----BEGIN X509 CRL----- +MIIBzjCBtwIBATANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJBVTETMBEGA1UE +CAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRk +MQ8wDQYDVQQDDAZ0ZXN0Y2EXDTIxMDkyMjA1MzYyMFoXDTIxMTAyMjA1MzYyMFow +HDAaAgkAiySwBjJlVHwXDTIxMDkyMjA1MzYwMVqgDzANMAsGA1UdFAQEAgIQADAN +BgkqhkiG9w0BAQsFAAOCAQEAUFDfTvhdTHaJgMVf2vCMlJRW1lB7ATjnIwirRBR4 +iQBFtGeUep2D+0ZsAICocrp840rYVxTpXbhuP1CDm8jLo7/ih9BPGps3KgJGiy5i +k+riEeVXSWWBZl3vaZnzd0NR3pood9+Of5hK/n9DYUctzdcpyZQDiFsdtZ1Nu7qY +a5iFFfG3jc5TdIj8RrWCQe8hfSOcl9bjgFh4bSGHg464YNK9D8Vi5IW6/YC9Y2HL +j4snAtcWSleN15GjyQVnZw2uLYw+3QNgjBEdC4tnEktUEKlQIHbRbKV2Ol1pd5O+ +tAOrMJFe94iXzHdOgdeyIQvQo8aflOnQ4uiDYEIjOyOMKQ== +-----END X509 CRL----- diff --git a/test/core/tsi/test_creds/crl_data/demoCA/crlnumber b/test/core/tsi/test_creds/crl_data/demoCA/crlnumber new file mode 100644 index 00000000000..dd11724042e --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/demoCA/crlnumber @@ -0,0 +1 @@ +1001 diff --git a/test/core/tsi/test_creds/crl_data/demoCA/crlnumber.old b/test/core/tsi/test_creds/crl_data/demoCA/crlnumber.old new file mode 100644 index 00000000000..83b33d238da --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/demoCA/crlnumber.old @@ -0,0 +1 @@ +1000 diff --git a/test/core/tsi/test_creds/crl_data/demoCA/index.txt b/test/core/tsi/test_creds/crl_data/demoCA/index.txt new file mode 100644 index 00000000000..e288b25b52e --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/demoCA/index.txt @@ -0,0 +1 @@ +R 310920052448Z 210922053601Z 8B24B0063265547C unknown /CN=revoked diff --git a/test/core/tsi/test_creds/crl_data/demoCA/index.txt.attr b/test/core/tsi/test_creds/crl_data/demoCA/index.txt.attr new file mode 100644 index 00000000000..8f7e63a3475 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/demoCA/index.txt.attr @@ -0,0 +1 @@ +unique_subject = yes diff --git a/test/core/tsi/test_creds/crl_data/demoCA/index.txt.old b/test/core/tsi/test_creds/crl_data/demoCA/index.txt.old new file mode 100644 index 00000000000..e69de29bb2d diff --git a/test/core/tsi/test_creds/crl_data/revoked.key b/test/core/tsi/test_creds/crl_data/revoked.key new file mode 100644 index 00000000000..971c857ac14 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/revoked.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQD0eLyt9JWxYZPl +8xbz5uVWupHP7Ds7AJTl8lOpVVWN7l7VH9YItYrnySO6dNOSti3sqe3dmi+V4GTx +HJcmaUjyPAU3BPV5fKzUlw+sEMzN9k7TB/8rYxHeYkrRguzQDpOUItZmiKvSRi0F +jOHZqYMInEmHkszgyIJ1hOVBmfRe895Qx91HBhD/OajHGzJkZboYLcdeSM0cG1gN +K6VRhJ/ZPdv7Pq704hCMP/I9iBnN6lG3vl5lOViL/hicpnPm6+oH6gATsomsWyWc +V/llH3TLiLcFp7+ThQhb1PTMRD9LUZpjILqCK3f0JRZNn/ZPbtzbmOwi4SJOVflb +lwBNtRM1AgMBAAECggEAI2w7Kpl99y3EWFVYxg52vJJb/lykWHBFIuxx4t9SfjZD +1229fZWQgvVKEAJNhbyP+vLEXI+yxWy2M5mI7S/kOfUobEhzqR6/jC43Px9QDafa +1AkcmBTKygZEAQePeLYj/BrwJfs3qkgwzdUUBI3jRqQeo15KAWgMPyr6bP75wagb +0mRW07XDSkh5N2oGuMywbzVuBGtRSaSf0s+plUFkaQ172ephgYX1QT57H/KE6Bmj +70IPrdRwReUoTBoPgDtdbgwf6YcXA3+L5iObdfBfbivrlSygkF7Knt6sDL6Y0qr3 +/zFaxMyYTsw2Yon4gv5W1wm3zAnLJ/A2yHE80MGVIQKBgQD/yPeRxpafSw22qsfY +OO0C7cThdeMAD5dswXBvK8Ab1YGP2fUJIq7p8IxDX579311eEb+tipzzdaNZlFkT +JA4Yhre6nFDZjqnDcvTIaCeTMiTKWWssiWoRgI889337HMjyACeoZ/tVKN1YmHQ9 +uuPzEHQgaMMwh6YdHOP9zjIMNwKBgQD0rVX6MWBfzU22KFDQfw84PyvwNcmAkWyW +VlAe8DOKazS5faRaOz7UdaSvH/gTPAPkhv4SjicfJbx+TCy296DYzKONkDXkdDcd +bOfI/l/nrVt3UaZQQ0Zy7gAxl6soU4bcTgQ7j4ePZnDLVBwcTS/Z55jbiAnoq9ph +ug/SWZjd8wKBgQChJrKji2SWU6j+LzbdiW/56meiTK2J+kjC4lS+FehhIPER+pYg +/VMKXN1iDTqUZEfk3nXPFoev86vI4mgEYTDoTugukBF4ICPg2epS4Rwd5ve67P9S +/fhvsnmMRbl/njEUFvjlZy24B5j9GoAR7E91ciZXzOk9CBmmOe+Cloh9nQKBgQDE +MPEN6uXCK9cyRuV2KUvE6DKNLDPk2bbeXVtlU2mghhIC4lIU4AijR6nDmrjKg4cD +iZLUwhNwkEuyYdZA6BKbhItoicgM5XsEJz08F2xDUuhSpq/bD/a/VUPmgB0H+uHa +aNxP/ejO/W9YOptHvkSuT1xsO4rmfFZholXpb1p6LQKBgQDTrGyvjFBmFeq3b5e/ +lDpzaVQ0G0UGKCYVf84XrUnmwQjeYgMnXKLqrNmf2mC1E3HTZjb8doa+ckuZFT+l +nTABhJGgV5qwdpZHSOAlBThJDu55hBzZ0iNwoEWI/g2V21frU3gWXZFm7Mwl9Q6h +V20nkOwTZC9n0HnXYkt6DnXJAw== +-----END PRIVATE KEY----- diff --git a/test/core/tsi/test_creds/crl_data/revoked.pem b/test/core/tsi/test_creds/crl_data/revoked.pem new file mode 100644 index 00000000000..19812aa2db1 --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/revoked.pem @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIIC5DCCAcwCCQCLJLAGMmVUfDANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJB +VTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0 +cyBQdHkgTHRkMQ8wDQYDVQQDDAZ0ZXN0Y2EwHhcNMjEwOTIyMDUyNDQ4WhcNMzEw +OTIwMDUyNDQ4WjASMRAwDgYDVQQDDAdyZXZva2VkMIIBIjANBgkqhkiG9w0BAQEF +AAOCAQ8AMIIBCgKCAQEA9Hi8rfSVsWGT5fMW8+blVrqRz+w7OwCU5fJTqVVVje5e +1R/WCLWK58kjunTTkrYt7Knt3ZovleBk8RyXJmlI8jwFNwT1eXys1JcPrBDMzfZO +0wf/K2MR3mJK0YLs0A6TlCLWZoir0kYtBYzh2amDCJxJh5LM4MiCdYTlQZn0XvPe +UMfdRwYQ/zmoxxsyZGW6GC3HXkjNHBtYDSulUYSf2T3b+z6u9OIQjD/yPYgZzepR +t75eZTlYi/4YnKZz5uvqB+oAE7KJrFslnFf5ZR90y4i3Bae/k4UIW9T0zEQ/S1Ga +YyC6git39CUWTZ/2T27c25jsIuEiTlX5W5cATbUTNQIDAQABMA0GCSqGSIb3DQEB +BQUAA4IBAQA/lJ/OxQLVo6p2LVznvWoHSEgyPOAmGKG6LZgCcn0Hnu9SXdVzB157 +ya93woq2DlBQkU90TbdbLA8Oa9o6ml54yPErYyffO9JObABhpSxgyj+AqiclTulT +dNP2RUAMPXEb0AELZqKyLZoyG4We7FhwIp8SdPg9l5vHPKTMTxwY8rRaclViDH2i +9gmuWtOdopwnaHdxj7CFIeaWytRxG1OcUALFF+SaaRglqhg0LaT0UIx69wqcGeRX +le1ZphpZCials9Qtis0rxDBQ2E8uoVk8Q8HGDm1NmNOKoktzA31qIF0x64Hggymy +PaxUJKc2QWOo7pUTGwDjDhicVSbPkMlI +-----END CERTIFICATE----- diff --git a/test/core/tsi/test_creds/crl_data/valid.key b/test/core/tsi/test_creds/crl_data/valid.key new file mode 100644 index 00000000000..972d097945b --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/valid.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC4CFzc5ggbenQz +9L4h6nhO0SLX/bVjORCNNB5cTm01nvmgQi4f3h2YS1afg9wUGmpIQSQW+dl2fSI+ +N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68sqhrGCcBPaJP+LJinswmvxhm4JH/WXJ6deGG +uVgrgMvYs32SZZQW+XAC5lJjaBtiWUZI+ewxb75RrVEzPDFjyuI/LLwfqQKBgCrh +E/77aDXxcMhJ6ArelpahXhschwDlLDWwzT6yYWqRuSKKekVoYOWACHXYq9a6/DwT +GdeWHmO1WIPsSWHo+mzk1cgwMJ68bEgbDMULCB+KSU0ucpDN3aSTZPYJKYiF1nP1 +up2McvO946cV8ED04Y2yOUsQaoS2fd10FEqsm+HBAoGAFMfIGHdzcKQCE2j1Boh+ +6VQahRp4iLII+Vj5h9mIhNzGHAs04g9QIZy5kUOeSkOxp9ITTl8vjNxR7eNs9yWq +20d6is2ODE25ZjHZf8UUCM/CyL8lJjWYr8ecCpVKIlKoZgIVZhGj3MJ1a18LlrbA +kwY8DkNvKI6LkrwthL318zA= +-----END PRIVATE KEY----- diff --git a/test/core/tsi/test_creds/crl_data/valid.pem b/test/core/tsi/test_creds/crl_data/valid.pem new file mode 100644 index 00000000000..0cd8486742d --- /dev/null +++ b/test/core/tsi/test_creds/crl_data/valid.pem @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIIC4jCCAcoCCQCLJLAGMmVUezANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJB +VTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0 +cyBQdHkgTHRkMQ8wDQYDVQQDDAZ0ZXN0Y2EwHhcNMjEwOTIyMDUyNDI1WhcNMzEw +OTIwMDUyNDI1WjAQMQ4wDAYDVQQDDAV2YWxpZDCCASIwDQYJKoZIhvcNAQEBBQAD +ggEPADCCAQoCggEBALgIXNzmCBt6dDP0viHqeE7RItf9tWM5EI00HlxObTWe+aBC +Lh/eHZhLVp+D3BQaakhBJBb52XZ9Ij43K/cyoegDNU1qdPWMI03p8rxGeGXuUrb6 +oSPna7SNeUhhxw7CamuR7OthVHpe0lDaj4k34Jo6ZkIx9PNpxSLBJ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