}
}
protected void addV3CRLDistPoint(final JcaX509v3CertificateBuilder builder, final BouncyCastleCertificateRequest request) throws CertIOException {
if (Conditions.isNotEmpty(request.getCrlDistPoint())) {
GeneralName gn = new GeneralName(6, new DERIA5String(request.getCrlDistPoint()));
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(gn);
GeneralNames generalNames = GeneralNames.getInstance(new DERSequence(vec));
DistributionPointName distributionPointName = new DistributionPointName(0, generalNames);
CRLDistPoint crlDistPoint = new CRLDistPoint(new DistributionPoint[] { new DistributionPoint(distributionPointName, null, null) });
builder.addExtension(X509Extension.cRLDistributionPoints, false, crlDistPoint);
builder.addExtension(MiscObjectIdentifiers.netscapeCApolicyURL, false, new DERIA5String(request.getCrlDistPoint()));
}
}