Skip to content

Commit

Permalink
Merge pull request #2164 from SanojPunchihewa/crl-test
Browse files Browse the repository at this point in the history
Fix RevocationVerificationTest failure
  • Loading branch information
SanojPunchihewa authored Mar 19, 2024
2 parents ae73b4c + cf9aaa6 commit 1e91092
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public interface TestConstants {

/**
* The certificates in the resources folder will contain the certificates in the certificate chain from
* https://www.github.com
* https://www.wso2.com
* These certificates are chosen because the certificate issuers support both CRL and OCSP. Read the certificates for
* more details.
*
* CAUTION: Replace the certificates if they expire or are marked as revoked by their issuers. At the moment they are
* valid. The expiry dates of the certificates are as follows:
*
* github.com : 3/15/2024
* DigiCertHighAssuranceEVCA-1 : 4/14/2031
* DigiCertHighAssuranceEVRootCA : 11/10/2031
* wso2.com : 19/12/2024
* DigiCertHighAssuranceEVCA-1 : 24/09/2030
* DigiCertHighAssuranceEVRootCA : 15/01/2038
*/
final static String REAL_PEER_CERT = "/org/apache/synapse/transport/certificatevalidation" +
"/certificates/github/github.com";
"/certificates/wso2/wso2.com";
final static String INTERMEDIATE_CERT = "/org/apache/synapse/transport/certificatevalidation" +
"/certificates/github/DigiCertHighAssuranceEVCA-1";
"/certificates/wso2/DigiCertHighAssuranceEVCA-1";
final static String ROOT_CERT = "/org/apache/synapse/transport/certificatevalidation" +
"/certificates/github/DigiCertHighAssuranceEVRootCA";
"/certificates/wso2/DigiCertHighAssuranceEVRootCA";
}

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-----BEGIN CERTIFICATE-----
MIIE9DCCA9ygAwIBAgIQCF+UwC2Fe+jMFP9T7aI+KjANBgkqhkiG9w0BAQsFADBh
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCB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
aWNlcnQuY29tL0RpZ2lDZXJ0R2xvYmFsUm9vdEcyLmNybDAwBgNVHSAEKTAnMAcG
BWeBDAEBMAgGBmeBDAECATAIBgZngQwBAgIwCAYGZ4EMAQIDMA0GCSqGSIb3DQEB
CwUAA4IBAQB1i8A8W+//cFxrivUh76wx5kM9gK/XVakew44YbHnT96xC34+IxZ20
dfPJCP2K/lHz8p0gGgQ1zvi2QXmv/8yWXpTTmh1wLqIxi/ulzH9W3xc3l7/BjUOG
q4xmfrnti/EPjLXUVa9ciZ7gpyptsqNjMhg7y961n4OzEQGsIA2QlxK3KZw1tdeR
Du9Ab21cO72h2fviyy52QNI6uyy/FgvqvQNbTpg6Ku0FUAcVkzxzOZGUWkgOxtNK
Aa9mObm9QjQc2wgD80D8EuiuPKuK1ftyeWSm4w5VsTuVP61gM2eKrLanXPDtWlIb
1GHhJRLmB7WqlLLwKPZhJl5VHPgB63dx
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH
MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT
MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j
b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI
2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULec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