Search code examples
jakarta-eeservletsejbca

EJBCA Webservice Exceptions


i am Trying to access EJBCA Webservice from a client machine and i am getting these exceptions mentioned below : please tell me what are the possible reasonsand working solution of these Exception : javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://example.com:8442/ejbca/ejbcaws/ejbcaws?wsdl. It failed with: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Solution

  • I guess you get the exception at the client, this means you don't have the ca certificate that issued the server certificate in the truststore of the client. If you did not modify your ejbca installation you should copy your AdminCA certificate into the truststore of your client.

    If you got it on the server you need too issue a client certificate from your AdminCA, create a new Role under "Administrator Roles" and authorize the issued client certificates for the required cas and use this certificate in your client.