Bonjour,

Je m'occupe de plusieurs serveurs jboss faisant des accès à des webservices.
un de ces webservices ne fonctionne pas sur nos serveurs de prod, mais focntionne sur la pre-prod. Or les environnements systèmes et applicatifs sont les mêmes.

On fait appel à une url https://..../nomdufichier?var1=xxx&var2=xxx ... Le certificat distant est un vrai certificat Thawte. Si je lance depuis mon nvaigateur, tout passe bien. Si je lance depuis le serveur avec un wget, idem, c'est ok.

Voilà le log lorsque ça passe par jboss:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2011-07-22 09:41:14,469 INFO  [STDOUT] select for URL : https://..../nomdufichier?var1=xxxx&var2=xxx
2011-07-22 09:41:14,474 INFO  [STDOUT] proxy hostname : HTTP IPDUSUPERPROXYDELAMORTQUITUE proxy port : PORTDUSUPERPROXYDELAMORTQUITUE
2011-07-22 09:41:14,560 ERROR [STDERR] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1623)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:198)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:192)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1074)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:128)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:529)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:465)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1147)
2011-07-22 09:41:14,560 ERROR [STDERR]  at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1131)
2011-07-22 09:41:14,560 ERROR [STDERR]  at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
2011-07-22 09:41:14,560 ERROR [STDERR]  at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
2011-07-22 09:41:14,560 ERROR [STDERR]  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
2011-07-22 09:41:14,560 ERROR [STDERR]  at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
2011-07-22 09:41:14,560 ERROR [STDERR]  at ....
....
Cet accès ne fonctionne plus du jour au lendemain. Aucun keystore ou trustore sur les machines, que ce soit en prod comme en pre-prod. L'accès fonctionnait et ne marche plus.

Une idée ? Je ne sais plus du tout où chercher et les développer non plus. J'espère que vous pourrez me filer un coup de main.