Store cert by cert serial

revert-70aa11f8
Janak Amarasena 8 years ago
parent 2b0800794d
commit 44940f3136

@ -75,7 +75,7 @@ public class CertificateManagementAdminServiceImpl implements CertificateManagem
certificate.setTenantId(PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId());
X509Certificate x509Certificate = certificateService
.pemToX509Certificate(enrollmentCertificate.getPem());
certificate.setSerial(CertificateGenerator.getCommonName(x509Certificate));
certificate.setSerial(x509Certificate.getSerialNumber().toString());
certificate.setCertificate(x509Certificate);
certificates.add(certificate);
}

Loading…
Cancel
Save