Bonjour,
Depuis quelques jours, je cherche une solution à mon problème : accèder à un service web via Axis sachant que l'on m'a donné un certificat PFX pour cela.
Pour information, j'utilise aussi le framework Spring en version 2.
Je dispose de l'environnement suivant :
 - Windows XP SP2
 - Apache 2.0.55 (mod_ssl 2.0.52 / OpenSSL 0.9.8d)
 - Tomcat 5.5.9
 - JDK 1.5.0_04
Une fois installé sous IE, les informations de mon certificat donnent :
 - version : V3
 - algorithme de signature : sha1RSA
 - clé publique : RSA 1024 bits
 - etc...
Voici le code testé :
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 
 |  
AxisProperties.setProperty(
                    "org.apache.axis.components.net.SecureSocketFactory",
                    "org.apache.axis.components.net.SunFakeTrustSocketFactory");
 
            // Définition des paramètres de proxy
            System.setProperty("http.proxyHost", "SRVPROXY");
            System.setProperty("http.proxyPort", "80");
 
 
            Service service = new Service();
            Call call = (Call)service.createCall();
            call.setTargetEndpointAddress(new java.net.URL(endpoint));
            call.setOperationName(new QName(method));
 
 
            ret = (String)call.invoke(new Object[] { param}); | 
 Et voici l'erreur :
	
	javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
 handshake_failure
J'ai trouver un peu d'informations sur le keystore  & Co sur ce topic mais j'y arrive pas trop :-(
Je suis preneur de toute informations me permettant d'avancer.
Merci
						
					
Partager