}
}
} else {
// We should never get here
log.error("Directly renewing a CA signed by external can not be done");
throw new NotSupportedException("Directly renewing a CA signed by external can not be done");
}
// Set statuses and expire time
cadata.setExpireTime(CertTools.getNotAfter(cacertificate).getTime());
ca.setExpireTime(CertTools.getNotAfter(cacertificate));
cadata.setStatus(SecConst.CA_ACTIVE);