[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
|
// Enable On-Line Certificate Status Protocol (OCSP) support
|
||||||
|
if (_enableOCSP)
|
||||||
|
{
|
||||||
Security.setProperty("ocsp.enable","true");
|
Security.setProperty("ocsp.enable","true");
|
||||||
|
}
|
||||||
// Enable Certificate Revocation List Distribution Points (CRLDP) support
|
// Enable Certificate Revocation List Distribution Points (CRLDP) support
|
||||||
|
if (_enableCRLDP)
|
||||||
|
{
|
||||||
System.setProperty("com.sun.security.enableCRLDP","true");
|
System.setProperty("com.sun.security.enableCRLDP","true");
|
||||||
|
}
|
||||||
|
|
||||||
// Build certification path
|
// Build certification path
|
||||||
CertPathBuilderResult buildResult = CertPathBuilder.getInstance("PKIX").build(pbParams);
|
CertPathBuilderResult buildResult = CertPathBuilder.getInstance("PKIX").build(pbParams);
|
||||||
|
|
Loading…
Reference in New Issue