Skip to content

Commit

Permalink
Updating rsa_2048_sha256_uri_sans_cert (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttjsu-aws authored Feb 23, 2021
1 parent c72576f commit ad90547
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 34 deletions.
74 changes: 41 additions & 33 deletions tests/pems/rsa_2048_sha256_uri_sans_cert.pem
Original file line number Diff line number Diff line change
@@ -1,37 +1,45 @@
-----BEGIN CERTIFICATE-----
MIIC1jCCAb6gAwIBAgIJAOpRGLgAwR68MA0GCSqGSIb3DQEBCwUAMBYxFDASBgNV
BAMTC3MyblRlc3RSb290MB4XDTE5MTAxMDIyNDI0M1oXDTIxMDIyMTIyNDI0M1ow
GDEWMBQGA1UEAwwNczJuVGVzdFNlcnZlcjCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAJ9bDWQVzzL5a5034zqrcA4WbaxdSGDgWttwo3VWM7huXY+oNFzI
7ddKnOqndITk9m7zq07NzDcw8RaGLOeJqu1JTLPHQMUIjR4LGNM0HdKsHiIgR2w2
PQbj1QnofHnkO3Dlyb2+OSNyIlvguDTbI8hqd5FL+mc+UoNmLG+MhsO7k90nvYWc
XSevwCxRhE3eRJJozI2RFWNAbUEZTgzXQTBom3XpFiwM719jO5eCpNaejXDakn/B
5Mp9KmlP4/QkvXbD9XpR2XkvlrGLPHL4LQEbW5gOg2Jh4eSezwtMGSGlEEQ7gRD8
/59A8meDQBx9zEi3bGgTsJC/b/okiQ8HUXUCAwEAAaMlMCMwCwYDVR0PBAQDAgXg
MBQGA1UdEQQNMAuGCWZvbzovL2JhcjANBgkqhkiG9w0BAQsFAAOCAQEAsfKwWaz0
2IKXH1TE4rA6CjZUpk81LsFiSBFsjoVGeGoQeuMEufnqMbxD8vqJn02LeEqjBsTt
+meaTcZ5w7AUhCq0Jc2F2ME6OBHd7I97NIzO51uBiBVP7aC0QMzq5zFi6GPjBERi
bSK7xMKZIrQ67jQEdL2Lfk8O555SKFSmoPGJruEwh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YPVHWzm+JYA14mkwIDAQAB
o4HRMIHOMB0GA1UdDgQWBBQ3d4tNU7sEVENqCL+y9t/FLRN8pTCBngYDVR0jBIGW
MIGTgBQ3d4tNU7sEVENqCL+y9t/FLRN8paFlpGMwYTELMAkGA1UEBhMCVVMxCzAJ
BgNVBAgMAldBMRAwDgYDVQQHDAdTZWF0dGxlMQ8wDQYDVQQKDAZBbWF6b24xDDAK
BgNVBAsMA3MybjEUMBIGA1UEAwwLczJuVGVzdFJvb3SCFChB1ggvbtlFY6wKrgBd
HnpNV5DLMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAG1GFWhYPVk5
N6C3fqn1DFGyzk1pvrA6Lhwu0cblFhV+fWNoLWuO/+ORfwscOTusz+k6PwimVqJ/
X8I5gNvvcCNFLR3RW41YwjQnP8HvxRzAFut1tZ++8uBefSL18BLaVcQ9kdX22tOv
JAi+iYkLPzQYnbUa48mIBO5QU4gKTVBbRRll5Qr7JKF46oEMjP0mN3VW1jaMNaD1
/138oTWSuqPiagUTjMnX23yRai5VMVg//mSOB17mTmi5nlk0edg5/T+ScHf9fKhz
kgzp3IM2AAJIroFWWDCwxQ8sd5SrzJRSSW96k9TbrIgb2kTJhCAqLigpGs0Hvcrz
0St47X/1rVs=
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion tests/unit/s2n_x509_validator_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ int main(int argc, char **argv) {
EXPECT_SUCCESS(s2n_read_test_pem(S2N_RSA_2048_SHA256_URI_SANS_CERT, (char *) cert_chain_pem, S2N_MAX_TEST_PEM_SIZE));
struct s2n_stuffer chain_stuffer;
uint32_t chain_len = write_pem_file_to_stuffer_as_chain(&chain_stuffer, (const char *) cert_chain_pem, S2N_TLS12);
EXPECT_TRUE(chain_len > 0);
EXPECT_TRUE(chain_len > 1);
uint8_t *chain_data = s2n_stuffer_raw_read(&chain_stuffer, (uint32_t) chain_len);

struct s2n_pkey public_key_out;
Expand Down

0 comments on commit ad90547

Please sign in to comment.