[jboss-user] [JBoss Web Services] - Jboss 6.0 WebService (Saaj) Client with SLL

Fabiano Oss do-not-reply at jboss.com
Mon Mar 7 11:32:26 EST 2011


Fabiano Oss [http://community.jboss.org/people/fabiano.oss] created the discussion

"Jboss 6.0 WebService (Saaj) Client with SLL"

To view the discussion, visit: http://community.jboss.org/message/591682#591682

--------------------------------------------------------------
Hi,

I'm testing my application in the Jboss 6.0.0.Final. This application, actualy works on jboss 4.2.3. The application call a web service with SSL, using this way:

        System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
        System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
        Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        System.setProperty("https.proxySet", "true");  
        System.setProperty("https.proxyHost", "proxy's ip");  
        System.setProperty("https.proxyPort", "proxy's port");
        Authenticator.setDefault(new ProxyAuthenticator("proxy's user", "proxy's password"));
        System.setProperty("javax.net.ssl.trustStoreType", "JKS");
        System.setProperty("javax.net.ssl.trustStore", "path of the trust");
        System.setProperty("javax.net.ssl.trustStorePassword", "password");

        System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
        System.setProperty("javax.net.ssl.keyStore", "path of the .p12 file" );
        System.setProperty("javax.net.ssl.keyStorePassword", "password");
....
       MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
       ....
       SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
       SOAPMessage res = con.call(message, url);

When I execute my application on Jboss 6, the result is: "The page requires a client certificate". But I execute with Jboss 4.2.3 works fine.
How do I fix this?

Thank you.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/591682#591682]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110307/fc523c67/attachment.html 


More information about the jboss-user mailing list