AXL HTTPS Connection to CUCM

I though i would add this to save others some pain i when through to get this to work.

I use this tutorial to get started from Cisco http://developer.cisco.com/web/axl-developer/axl-java-sample-application

Problem been it dose not tell you much about the certification process.
First add this to your java app and run it to see what JRE is been used:
System.out.println("JAVA:"+System.getProperty("java.home"));

For me it was:JAVA:C:\Program Files\Java\jre7

You can also check java_home etc by typing set in dos. This will output all the env variables for a win o/s. If you need to set any check out http://stackoverflow.com/questions/2619584/how-to-set-java-home-on-windows-7 after that i had to also restart my o/s

Download CUCM certificate as suggested by the Cisco tutorial. Open a dos window and navigate to the directory you have download the certificate. Type the following:
"C:\Program Files\Java\jre7\bin\keytool" -import -alias cucm8 -file CUCMPUB01.corp.org.crt -keystore "C:\Program Files\Java\jre7\lib\security\jssecacerts" Note the part in bold should match the output from the instructions above,
password if asked is “changeit”

The https request must match the CN name in the certificate:

Certificate CN Name

Certificate CN Name

Java code needs to be:String validatorUrl = "https://cucm01.corp.xxxxx.org:8443/axl/";

ref:
http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#Customization
http://stackoverflow.com/questions/5871279/java-ssl-and-cert-keystore
http://www.mkyong.com/webservices/jax-ws/how-to-trace-soap-message-in-eclipse-ide/

Tags: ,

About Alexis Katsavras

Working as Freelance Cisco Unified Communications Consultant in the UK. www.NetPacket.co.uk