cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1023
Views
5
Helpful
3
Replies

Certificate issue while using webservice

Sowmiya J
Level 1
Level 1

Hi Team,

I am using PCCE CVP 11.5.I am getting the below error when i try to use my wsdl.I have wrriten Java code for integration.I have placed the certificate in C:\Cisco\CVP\jre\lib\security\cacerts path 

ERROR:

javax.net.ssl.SSLPeerUnverifiedException: Certificate for <xxxxx> doesn't match any of the subject alternative names: [Profile..........]

 

Thanks in Advance

3 Replies 3

Quigath
Spotlight
Spotlight

I've never done what you're trying to do with Cisco. Generally however, java requires the cert to be imported with the keytool command such as:

keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"

In your project, are there any security settings to be mindful of, like TLS, etc?

Hi

Thanks for the reply. Issue was due to mismatch in certificate name. Once
it is changed, issue was resolved

snewmanNX
Level 1
Level 1

The error looks like it is seeing your certificate ok, but whatever is in the SAN field is not matching the server you are connecting to. Might want to use keytool to print out the certificate information and see what is in your Subject Alternative Name field and see if any of those values match the URL you are connecting to. You might need a different certificate to make it work.