Merge pull request #730 from janakamarasena/cert-mgt

Store cert by cert serial
4.x.x
Amal Gunatilake 8 years ago committed by GitHub
commit e736659204

@ -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