Giter VIP home page Giter VIP logo

Comments (3)

OndroMih avatar OndroMih commented on July 26, 2024

I'll try to answer here, but these kind of questions are better discussed on the forum here: http://www.payara.org/forum

I think you need to add the public key to the remote certificate to the trust store. According to the stack trace, you're not using Payara (JAX-WS) API to access the remote service but you're using AXIS instead. Therefore you need to at the certificate into the default JVM keystore with the system property javax.net.ssl.trustStore. See here for more information: https://stackoverflow.com/questions/6340918/trust-store-vs-key-store-creating-with-keytool#6341566

If you want to raise more questions, please ask them in the forum, I'll be happy to answer them there.

I'm cloing this issue now.

from payara-examples.

marchenar avatar marchenar commented on July 26, 2024

Thanks for your response, I write the issue in the forum with the following notes ....

  • I had generated an P12 certificate from the the digital certificate (.CER) that I downloaded from the vendor, and I use it to access from standard Java application successfully

  • This vendor has an authentication webservice to access all they web services, but the error throws previous to autenticate use the P12 key, it throws when I call a simply dummy web service to check if the vendor site works correctly, and that web services that not require any authentication.

I had set the javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword pointing to my P12 file but it throws the same error.

System.setProperty("javax.net.ssl.keyStore", ....);
System.setProperty("javax.net.ssl.keyStorePassword", ...);

any ideas? should I add my p12 key to the cacerts.jks or keystore.jks files in the domain config?

from payara-examples.

bander-saeed94 avatar bander-saeed94 commented on July 26, 2024

Thanks for your response, I write the issue in the forum with the following notes ....

  • I had generated an P12 certificate from the the digital certificate (.CER) that I downloaded from the vendor, and I use it to access from standard Java application successfully
  • This vendor has an authentication webservice to access all they web services, but the error throws previous to autenticate use the P12 key, it throws when I call a simply dummy web service to check if the vendor site works correctly, and that web services that not require any authentication.

I had set the javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword pointing to my P12 file but it throws the same error.

System.setProperty("javax.net.ssl.keyStore", ....);
System.setProperty("javax.net.ssl.keyStorePassword", ...);

any ideas? should I add my p12 key to the cacerts.jks or keystore.jks files in the domain config?

Were you able to solve it? if yes please share your solution

from payara-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.