Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CFA37101AA for ; Fri, 26 Apr 2013 10:24:26 +0000 (UTC) Received: (qmail 48730 invoked by uid 500); 26 Apr 2013 10:24:25 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 48352 invoked by uid 500); 26 Apr 2013 10:24:19 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 48322 invoked by uid 99); 26 Apr 2013 10:24:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 10:24:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sotanez@gmail.com designates 209.85.210.42 as permitted sender) Received: from [209.85.210.42] (HELO mail-da0-f42.google.com) (209.85.210.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 10:24:13 +0000 Received: by mail-da0-f42.google.com with SMTP id n15so641341dad.15 for ; Fri, 26 Apr 2013 03:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=4PTwD6qbW/K/GKMRF7Sl/JWJmqyk28fNVMzuVGF8ff4=; b=WOJOBHDa5e+ERj8a6lQ3y/5BPA+/qrOvJhPcx05tEBbS+RtjbdAbkXObV4a7GfwqJJ ApT0h8yFgcO2/K2aMrGYqgHTWTr5wrw+YA4tLOzbf3sbNjVwVx9XPIDKYNSSscJJVmMy 3hHZicWyQDQU+Hun+3smuzfMBfY27UO7KP54VlyP0P5dytlUL4EkvgATsXKk0btT+G6t Q7aZgDqiPFtUM9YLQOMW7klMim2HbfRo4+eRJzJ6HBa2k4jZxex7kXknl4lpN7J04B0I k238aHTzri/OI8udRd682DTuLUHgHu3MFE2ltkFTig7Flgky9PXGn/lHiAr9ZBGBZuHh Zq6A== MIME-Version: 1.0 X-Received: by 10.68.178.37 with SMTP id cv5mr57133435pbc.213.1366971833694; Fri, 26 Apr 2013 03:23:53 -0700 (PDT) Received: by 10.68.218.130 with HTTP; Fri, 26 Apr 2013 03:23:53 -0700 (PDT) Date: Fri, 26 Apr 2013 12:23:53 +0200 Message-ID: Subject: axis2.AxisFault: [clientAuthRequired] No se ha encontrado el certificado de cliente (client certificate not found) From: David Perra To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=047d7b6d918e90c0e004db40eeb3 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6d918e90c0e004db40eeb3 Content-Type: text/plain; charset=ISO-8859-1 Hello everybody. I am obtaining this exception (client certificate not found) when trying to connect to a secure Web Service that requires a client certificate. I am using a web service client automatically generated by axis2, using the Eclipse wizard. This is the calling code, that causes the exception in the last line: ---------------------- System.setProperty("javax.net.ssl.trustStore","C:\\Archivos de programa\\Java\\jre7\\lib\\security\\cacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); System.setProperty("javax.net.ssl.keyStore","D:\\Perfil Usuario\\internet\\Escritorio\\workspace\\certificados\\clientes.jks"); System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); ServicioBoletinStub lala = new ServicioBoletinStub(); ConsultaDeCatalogo cons = new ConsultaDeCatalogo(); cons.setArgs0("SECCIONES"); ConsultaDeCatalogoResponse conResp = lala.consultaDeCatalogo(cons); ----------------------------- The client certificate is imported in "clientes.jks" keystore, and all the other required certificates for the authentication path are in "cacerts". The only weird thing I had to do was to convert the client certificate from .p12 to .cer, because keytool was complaining that the .p12 file was not an x509 certificate. The .p12 file was encrypted with a password, but the .cer file is not, so I am afraid that something was missed during the conversion. I am very new to handling certificates so I do not know what I am missing. Thank you very much. --047d7b6d918e90c0e004db40eeb3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello everybody.
I am obtaining this exception (= client certificate not found) when trying to connect to a secure Web Servic= e that requires a client certificate. I am using a web service client autom= atically generated by axis2, using the Eclipse wizard.

This is the calling code, that causes the e= xception in the last line:

-----------= -----------
System.setProperty("javax.net.ssl.tru= stStore","C:\\Archivos de programa\\Java\\jre7\\lib\\security\\ca= certs");
System.setProperty("javax.net.ssl.trustStorePassword", "= ;changeit");=A0
System.setProperty("javax.net.ssl.keySt= ore","D:\\Perfil Usuario\\internet\\Escritorio\\workspace\\certif= icados\\clientes.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "c= hangeit");
ServicioBoletinStub lala =3D new ServicioBoletinS= tub();
ConsultaDeCatalogo cons =3D new ConsultaDeCatalogo();
cons.setArgs0("SECCIONES");
ConsultaDeCatalogoResp= onse conResp =3D lala.consultaDeCatalogo(cons);
-----------------= ------------

The client certificate is impor= ted in "clientes.jks" keystore, and all the other required certif= icates for the authentication path are in "cacerts".
The only weird thing I had to do was to convert the client certi= ficate from .p12 to .cer, because keytool was complaining that the .p12 fil= e was not an x509 certificate. The .p12 file was encrypted with a password,= but the .cer file is not, so I am afraid that something was missed during = the conversion. I am very new to handling certificates so I do not know wha= t I am missing.

Thank you very much.
--047d7b6d918e90c0e004db40eeb3--