diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/impl/CertificateManagementAdminServiceImpl.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/impl/CertificateManagementAdminServiceImpl.java index 34740e5dffd..1380bc8cbaf 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/impl/CertificateManagementAdminServiceImpl.java +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/impl/CertificateManagementAdminServiceImpl.java @@ -294,14 +294,7 @@ public class CertificateManagementAdminServiceImpl implements CertificateManagem if (certificate.getSerial().toLowerCase().contains(PROXY_AUTH_MUTUAL_HEADER)) { certificateResponse = certMgtService.verifySubjectDN(certificate.getPem()); } else { - //janak - X509Certificate clientCertificate; - if(certificate.getCertificate()!=null){ - clientCertificate = certificate.getCertificate(); - }else { - clientCertificate = certMgtService.pemToX509Certificate(certificate.getPem()); - } - + X509Certificate clientCertificate = certMgtService.pemToX509Certificate(certificate.getPem()); if (clientCertificate != null) { certificateResponse = certMgtService.verifyPEMSignature(clientCertificate); }