setCAFingerprint(null);
setCaFingerprint(null);
    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);            // Make sure names are always looking the same            setSubjectDN(CertTools.getSubjectDN(tmpcert));            setIssuerDN(CertTools.getIssuerDN(tmpcert));            log.debug("Creating certdata, subject=" + getSubjectDN() + ", issuer=" + getIssuerDN());            setSerialNumber(tmpcert.getSerialNumber().toString());            // Default values for status and type            setStatus(CERT_UNASSIGNED);            setType(SecConst.USER_INVALID);            setCAFingerprint(null);            setExpireDate(tmpcert.getNotAfter());            setRevocationDate(-1L);            setRevocationReason(RevokedCertInfo.NOT_REVOKED);        } catch (CertificateEncodingException cee) {            log.error("Can't extract DER encoded certificate information.", cee);            // TODO should throw an exception        }        return null;    }