cat.error("Can't extract DER encoded certificate information.", cee);
log.error("Can't extract DER encoded certificate information.", cee);
    public CertificateDataPK ejbCreate(Certificate incert) throws CreateException {        // Exctract all fields to store with the certificate.        X509Certificate tmpcert;        try {            String b64Cert = new String(Base64.encode(incert.getEncoded()));            setBase64Cert(b64Cert);            tmpcert = (X509Certificate)incert;            String fp = CertTools.getFingerprintAsString(tmpcert);            setFingerprint(fp);        } catch (CertificateEncodingException cee) {            cat.error("Can't extract DER encoded certificate information.", cee);            return null;        }        // Make sure names are always looking the same        setSubjectDN(CertTools.stringToBCDNString(tmpcert.getSubjectDN().toString()));        setIssuerDN(CertTools.stringToBCDNString(tmpcert.getIssuerDN().toString()));        cat.debug("Creating certdata, subject="+getSubjectDN()+", issuer="+getIssuerDN());        setSerialNumber(tmpcert.getSerialNumber().toString());        // Default values for status and type        setStatus(CertificateData.CERT_UNASSIGNED);        setType(SecConst.USER_INVALID);        setCAFingerprint(null);        setExpireDate(tmpcert.getNotAfter());        setRevocationDate(-1L);        setRevocationReason(RevokedCertInfo.REVOKATION_REASON_UNSPECIFIED);        CertificateDataPK pk = new CertificateDataPK(getFingerprint());        return pk;    }