[Bug 373567] cert validation issue with ocsp and crldp always being enabled when validating turned on fixed
This commit is contained in:
parent
8db57b56ba
commit
6c81941142
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue