AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki);
crlgen.addExtension(X509Extensions.AuthorityKeyIdentifier.getId(), getAuthorityKeyIdentifierCritical(), aki);
}
// CRLNumber extension
if (getUseCRLNumber() == true) {
CRLNumber crlnum = new CRLNumber(BigInteger.valueOf(crlnumber));
crlgen.addExtension(X509Extensions.CRLNumber.getId(), this.getCRLNumberCritical(), crlnum);
}
if (isDeltaCRL) {
// DeltaCRLIndicator extension
CRLNumber basecrlnum = new CRLNumber(BigInteger.valueOf(basecrlnumber));
crlgen.addExtension(X509Extensions.DeltaCRLIndicator.getId(), true, basecrlnum);
}
// CRL Distribution point URI and Freshest CRL DP
if(getUseCrlDistributionPointOnCrl()) {
String crldistpoint = getDefaultCRLDistPoint();