request.setAttribute("caLocked", Boolean.TRUE);
throw new Exception("CA is locked. Unlock CA to view details.");
}
// Get CA details
Certificate caCert = ca.getCertificate();
request.setAttribute("cert", caCert);
request.setAttribute("highestSerial", ca.getHighestSerialNumber());
request.setAttribute("certText", CaUtils.base64Certificate(caCert));
PublicKey publickey = caCert.getPublicKey();
String keySize = null;
if(publickey instanceof RSAPublicKey) {
keySize = ""+((RSAPublicKey)publickey).getModulus().bitLength();
request.setAttribute("keySize", keySize);
}