Skip to main content

Validation of self signed certificate failed

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-10-30

Hi everybody

first i'm gonna explain my problem

i have Metro- WS(java) publish on a tomcat server, and in another project(java) i have the client that consume it, everything works fine..... the thing is, that i have to develop another client in C# to consume the same WS(java)...... i already achieve that the C# client make the call to the method, and i can see in the console of my eclipse that i´m receiving the call, but i get the next exception:

ADVERTENCIA: WSS1541: Could not locate TrustStore, check TrustStore assertion in WSIT configuration
oct 30, 2013 5:04:23 PM com.sun.xml.wss.impl.misc.DefaultCallbackHandler$X509CertificateValidatorImpl validate
GRAVE: WSS1533: fallo en la validación del certificado autofirmado.
oct 30, 2013 5:04:23 PM com.sun.xml.wss.jaxws.impl.SecurityServerTube processRequest
GRAVE: WSSTUBE0025: error al verificar la seguridad del mensaje entrante.
com.sun.xml.wss.impl.WssSoapFaultException: Validation of self signed certificate failed

on my client project in java i have the wsit.xml file taht contains the path to the truststore.jks....

location="c:\llaves5\wsTrustStore.jks" storepass="passstore"
peeralias="certificadoPub" />

but i don´t know how to tell the c# client where to find the truststore.jks

can you point me where to programmatically set the trustStore.jks path so the C# client can find it.

thanks in advance