String msg = intres.getLocalizedMessage("error.catokenoffline", cainfo.getName());
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_CAEDITED, msg, ctoe);
}
// No OCSP Certificate exists that can be renewed.
if (xkmsrenewcert) {
XKMSCAServiceInfo info = (XKMSCAServiceInfo) ca.getExtendedCAServiceInfo(ExtendedCAServiceInfo.TYPE_XKMSEXTENDEDSERVICE);
Certificate xkmscert = (Certificate) info.getXKMSSignerCertificatePath().get(0);
ArrayList<Certificate> xkmscertificate = new ArrayList<Certificate>();
xkmscertificate.add(xkmscert);
// Publish the extended service certificate, but only for active
// services
if ((info.getStatus() == ExtendedCAServiceInfo.STATUS_ACTIVE) && (!xkmscertificate.isEmpty())) {
publishCACertificate(admin, xkmscertificate, ca.getCRLPublishers(), ca.getSubjectDN());
}
}
if (cmsrenewcert) {
CmsCAServiceInfo info = (CmsCAServiceInfo) ca.getExtendedCAServiceInfo(ExtendedCAServiceInfo.TYPE_CMSEXTENDEDSERVICE);
Certificate cmscert = (Certificate) info.getCertificatePath().get(0);
ArrayList<Certificate> cmscertificate = new ArrayList<Certificate>();
cmscertificate.add(cmscert);
// Publish the extended service certificate, but only for active
// services
if ((info.getStatus() == ExtendedCAServiceInfo.STATUS_ACTIVE) && (!cmscertificate.isEmpty())) {
publishCACertificate(admin, cmscertificate, ca.getCRLPublishers(), ca.getSubjectDN());
}
}
// Log Action
String msg = intres.getLocalizedMessage("caadmin.editedca", cainfo.getName());