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

Certificate issue while using webservice

Sowmiya J
Beginner
Beginner

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

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

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: