Skip to content

Commit

Permalink
8268916: Tests for AffirmTrust roots
Browse files Browse the repository at this point in the history
Backport-of: 8c1bb2b
  • Loading branch information
GoeLin committed Oct 23, 2023
1 parent f1ce4ef commit 73c3316
Showing 1 changed file with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,46 @@
* @run main/othervm -Djava.security.debug=certpath CAInterop certignarootca CRL
*/

/*
* @test id=affirmtrustcommercialca
* @bug 8040012
* @summary Interoperability tests with AffirmTrust Commercial CA
* @library /test/lib
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustcommercialca OCSP
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustcommercialca CRL
*/

/*
* @test id=affirmtrustnetworkingca
* @bug 8040012
* @summary Interoperability tests with AffirmTrust Networking CA
* @library /test/lib
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustnetworkingca OCSP
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustnetworkingca CRL
*/

/*
* @test id=affirmtrustpremiumca
* @bug 8040012
* @summary Interoperability tests with AffirmTrust Premium CA
* @library /test/lib
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustpremiumca OCSP
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustpremiumca CRL
*/

/*
* @test id=affirmtrustpremiumeccca
* @bug 8040012
* @summary Interoperability tests with AffirmTrust Premium ECC CA
* @library /test/lib
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustpremiumeccca OCSP
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustpremiumeccca CRL
*/

/**
* Collection of certificate validation tests for interoperability with external CAs
*/
Expand Down Expand Up @@ -479,6 +519,20 @@ private CATestURLs getTestURLs(String alias) {
new CATestURLs("https://valid.servicesca.dhimyotis.com",
"https://revoked.servicesca.dhimyotis.com");

// These are listed at https://www.affirmtrust.com/resources/
case "affirmtrustcommercialca" ->
new CATestURLs("https://validcommercial.affirmtrust.com",
"https://revokedcommercial.affirmtrust.com");
case "affirmtrustnetworkingca" ->
new CATestURLs("https://validnetworking.affirmtrust.com",
"https://revokednetworking.affirmtrust.com");
case "affirmtrustpremiumca" ->
new CATestURLs("https://validpremium.affirmtrust.com",
"https://revokedpremium.affirmtrust.com");
case "affirmtrustpremiumeccca" ->
new CATestURLs("https://validpremiumecc.affirmtrust.com",
"https://revokedpremiumecc.affirmtrust.com");

default -> throw new RuntimeException("No test setup found for: " + alias);
};
}
Expand Down

0 comments on commit 73c3316

Please sign in to comment.