|
|
@ -294,14 +294,7 @@ public class CertificateManagementAdminServiceImpl implements CertificateManagem
|
|
|
|
if (certificate.getSerial().toLowerCase().contains(PROXY_AUTH_MUTUAL_HEADER)) {
|
|
|
|
if (certificate.getSerial().toLowerCase().contains(PROXY_AUTH_MUTUAL_HEADER)) {
|
|
|
|
certificateResponse = certMgtService.verifySubjectDN(certificate.getPem());
|
|
|
|
certificateResponse = certMgtService.verifySubjectDN(certificate.getPem());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//janak
|
|
|
|
X509Certificate clientCertificate = certMgtService.pemToX509Certificate(certificate.getPem());
|
|
|
|
X509Certificate clientCertificate;
|
|
|
|
|
|
|
|
if(certificate.getCertificate()!=null){
|
|
|
|
|
|
|
|
clientCertificate = certificate.getCertificate();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
clientCertificate = certMgtService.pemToX509Certificate(certificate.getPem());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (clientCertificate != null) {
|
|
|
|
if (clientCertificate != null) {
|
|
|
|
certificateResponse = certMgtService.verifyPEMSignature(clientCertificate);
|
|
|
|
certificateResponse = certMgtService.verifyPEMSignature(clientCertificate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|