<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JAVA - Certificate Exception in Management</title>
    <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605778#M2867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer, I couldn't understand my exception but it's now solved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Briefly;&lt;/P&gt;&lt;P&gt;The certificate was well added into my local keystore...&lt;/P&gt;&lt;P&gt;The problem was that the RFC dealing with SSL connection specify that we have to use a hostname and not an ip address to reach the server. The problem was that I had no access to my own server using the hostname, due to an error in the DNS configuration that was not made by myself. &lt;/P&gt;&lt;P&gt;Little problem that couldn't be seen in my IDE..;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 12:33:13 GMT</pubDate>
    <dc:creator>schmetzgilles</dc:creator>
    <dc:date>2014-03-06T12:33:13Z</dc:date>
    <item>
      <title>JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605772#M2861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dans le cadre d'un travail je dois réaliser une application qui semble toute bête, et elle l'est en plus.. qui doit simplement envoyer des requêtes en AXL (XML Cisco) vers un CallManager afin d'en obtenir des informations basiques dans un premier temps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alors mon problème réside dans un exception que je n'arrive pas à résoudre:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Error: java.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative presence"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ceci se produit quand je tente de m'authentifier sur mon CallManager à l'adresse: [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://x.x.x.x:8443/axl/" target="_blank"&gt;https://x.x.x.x:8443/axl/&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Adresse que je sais accéder en allant via mon browser (Chrome) manuellement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pour mon code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;// Instanciation du service client (créé par wsimport)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AXLAPIService axlService = new AXLAPIService();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AXLPort axlPort = axlService.getAXLPort();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Création de l'URL et des paramètres pour accéder au service&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlAxl = "[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;]" + ipHost + ":8443/axl/";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((BindingProvider) axlPort).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, urlAxl);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((BindingProvider) axlPort).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, adminUsername);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((BindingProvider) axlPort).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, adminPassword);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCallManagerReq axlParams = new GetCallManagerReq();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taLog.append("\nGetCallManagerReq done");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axlParams.setName("gsc-cucm-pub");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taLog.append("\naxlparames done: " + axlParams.getName().toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCallManagerRes getCallManagerResponse = axlPort.getCallManager(axlParams);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taLog.append("\nProduct =" + getCallManagerResponse.getReturn().getCallManager().getName());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }catch(Exception exept)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taLog.append(exept.getMessage());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Les informations login/password/ip sont correctes et ont été testées manuellement à côté.&lt;/P&gt;&lt;P&gt;J'ai également réalisé l'importation de mon certificat dans mon keystore avec succès via ligne de commande dans ...\Java\jre7\lib\security\cacerts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'espère que la communauté pourra m'aider, s'il vous faut des infos supplémentaire je suis disponible aussi. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 10:00:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605772#M2861</guid>
      <dc:creator>schmetzgilles</dc:creator>
      <dc:date>2014-02-28T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605773#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have moved your forum question to the AXL space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, try adding the text in bold:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;using System.Security.Cryptography.X509Certificates;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;namespace ConsoleApplication1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Program&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; static void Main(string[] args)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;ServicePointManager.Expect100Continue = false;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrienne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:33:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605773#M2862</guid>
      <dc:creator>amoherek</dc:creator>
      <dc:date>2014-02-28T17:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605774#M2863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, as AXL uses HTTPS/TLS, be aware that you will need to import the UCM certificate into your local Java's cacerts keystore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This tutorial has some details on how to import the UCM certificate:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp" title="https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp"&gt;https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:58:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605774#M2863</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2014-02-28T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605775#M2864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already try to follow the tutorial on Cisco's link but the problem still persist on the keystore, I actually can't be sure that my keytsore is created as expected... ( &lt;STRONG&gt;keystore -list &lt;/STRONG&gt;doesn't run in the cmd )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not at the office for the week-end but I'll let you know on monday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Adrienne, the "Expect100Continue", isn't it for a .NET programming? My client application is a Java one... Can you confirm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps: Please don't pay attention to my written english, this is clearly not my native language... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:48:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605775#M2864</guid>
      <dc:creator>schmetzgilles</dc:creator>
      <dc:date>2014-03-01T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605776#M2865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you gave me deals with .NET application... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really don't know how to fix my certificate's problems. Also, the exemple are uncomplete on Cisco's siteweb. How to really import the CUCM certificate into a local keystore using Java 7 with .crt files and not .cert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is the exemple they code can't help, the complex part is hidden... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's for help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 09:37:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605776#M2865</guid>
      <dc:creator>schmetzgilles</dc:creator>
      <dc:date>2014-03-03T09:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605777#M2866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link may have some additional clues on Java certificate management and import:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/8980364/how-do-i-find-out-what-keystore-my-jvm-is-using" title="http://stackoverflow.com/questions/8980364/how-do-i-find-out-what-keystore-my-jvm-is-using"&gt;java - How do I find out what keystore my JVM is using? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certificate files exported from Firefox are generally .pem format, I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:16:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605777#M2866</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2014-03-03T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA - Certificate Exception</title>
      <link>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605778#M2867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer, I couldn't understand my exception but it's now solved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Briefly;&lt;/P&gt;&lt;P&gt;The certificate was well added into my local keystore...&lt;/P&gt;&lt;P&gt;The problem was that the RFC dealing with SSL connection specify that we have to use a hostname and not an ip address to reach the server. The problem was that I had no access to my own server using the hostname, due to an error in the DNS configuration that was not made by myself. &lt;/P&gt;&lt;P&gt;Little problem that couldn't be seen in my IDE..;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 12:33:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/java-certificate-exception/m-p/3605778#M2867</guid>
      <dc:creator>schmetzgilles</dc:creator>
      <dc:date>2014-03-06T12:33:13Z</dc:date>
    </item>
  </channel>
</rss>

