Bonjour,
j'ai récemment mis en place un web service avec authentification forte ( certificat pour le client et le serveur) C'est certificat étant auto-générés pourl es test, je me retrouve avec une erreur cxf :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
java.io.IOEception : The https URL hostname does not match the Common Name (CN) on the server certificate in the client's truststore. Make sure server certificate is correct, or disable this check ( NOT recommended for production ) set the cxf client TLS configuration property "disableCNCheck" to  true
Donc j'ai fais mes petites recherches. D'après la doc de cxf, il suffit de mettre le paramètre dans le fichier de conf de cxf.

Donc création d'un fichier cxf.xml dans le web-inf de l'application cliente.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" xmlns:http-conf="http://cxf.apache.org/transport/http/configuration">
<http-conf:conduit name="{monService}MonServicePort.http-conduit">
     <http-conf:tlsClientParameters disableCNCheck="true" />
</http-conf:conduit>
</beans>
Seulement, j'ai comme l'impression que ce fichier n'est pas pris en compte car la même erreur apparait.

Quelqu'un à une solution à me proposer? Merci d'avance