I don't know if is "the state of the art" :) but my simple test works:
1. Get the Server CERTIFICATE (or create one using "keytool -genkey -keyalg
RSA" and install it on the server).
2. Before you make the call.invoke(...) setup the server certificate:
System.setProperty("javax.net.ssl.trustStore", "C:\\t.keystore");
Where t.keystore is your server certificate that you have to copy on your
client.
By, Gigi
-----Original Message-----
From: Melean, Calixto (Calixto) [mailto:[EMAIL PROTECTED]
Sent: mercoled� 1 giugno 2005 17.49
To: [email protected]
Subject: Axis Client using HTTPS w/ no authentication how?
Folks,
Could anybody please help me with the following problem. I am desperate for
help as I can't get this to work.
I don't know if the problem is server or client. Anybody know how to configure
Axis to send HTTPS to servers without using authentication/certificates.
The web service is using gsoap. The client is using java apache axis. The
client is trying to use SSL(HTTPS).
I dont want want any authentication/certificates. I only need encryption.
In the server I am doing:
soap_ssl_server_context( soap, SOAP_SSL_DEFAULT, NULL, NULL, NULL, NULL, NULL,
NULL, NULL )
The error printed by gsoap is:
SOAP FAULT: SOAP-ENV:Server. SSL_ERROR_SSL error:1408A0C1:SSL routines:SSL
routines:reason(193). SSL_accept
() failed in soap_ssl_accept()
The error on the Axis side is:
javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
---------------------
Now, I tried setting the soap context using the included server.pem (though I
dont think I need this). And this is what happens:
soap_ssl_server_context( soap, SOAP_SSL_DEFAULT, "server.pem", "password",
NULL, NULL, NULL, NULL, NULL )
Error on gsoap side:
SOAP FAULT: SOAP-ENV:Server. SSL_ERROR_SSL error:14094416:SSL routines:SSL
routines:reason(1046). SSL_accept
() failed in soap_ssl_accept()
Error on Axis side:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
The errors are different. Again, the goal is to have encryption with no
authentication. Anybody knows how to get this going.
I appreciate any help
thanks