[Bug 373567] cert validation issue with ocsp and crldp always being enabled when validating turned on fixed

This commit is contained in:
Jesse McConnell 2012-03-08 13:56:00 -06:00
parent 8db57b56ba
commit 6c81941142
1 changed files with 8 additions and 3 deletions

View File

@ -232,10 +232,15 @@ public class CertificateValidator
}
// Enable On-Line Certificate Status Protocol (OCSP) support
Security.setProperty("ocsp.enable","true");
if (_enableOCSP)
{
Security.setProperty("ocsp.enable","true");
}
// Enable Certificate Revocation List Distribution Points (CRLDP) support
System.setProperty("com.sun.security.enableCRLDP","true");
if (_enableCRLDP)
{
System.setProperty("com.sun.security.enableCRLDP","true");
}
// Build certification path
CertPathBuilderResult buildResult = CertPathBuilder.getInstance("PKIX").build(pbParams);