In the past some people ask for the SSL certificate handling of WaveMaker. This is mostly caused by WebService integration. With my new vCO 5.1 appliance I had the problem again. After generating a new certificate for the vCenter Orchestrator here I connected the WaveMaker and had to learn a hard lesson: no more HTTP API connection with SOAP! Checking the cause in the browser I could see that there is always a HTTPS redirection :)
So I had to import the certificate of the vCenter Orchestrator like this:
sudo keytool -import -alias vco51.vcloud.lab -file /Users/cjohannsen/Desktop/vco51.vcloud.lab -storepass changeit -keystore /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts
As you can see the WaveMaker uses the JDK certificate store. So I had to export the vCO certificate (i used Firefox) and import it in the certificate store. The store password is originally "changeit". After a WaveMaker restart I tried to connect the https path:
https://vco51.vcloud.lab:8281/vmware-vmo-webcontrol/webservice?wsdl
and everything was fine.
With this its really easy to access the SOAP API. Next post will show how to connect the REST API with WaveMaker :)
virtualization and automation focused blog. description and code examples for vCloud Automation Center, vCenter Orchestrator, VMware LabManager, vSphere, vCenter Server, vCloud Director and many more. white paper and code snippet platform for virtualization environments.
Showing posts with label certificate. Show all posts
Showing posts with label certificate. Show all posts
Friday, September 21, 2012
Thursday, September 20, 2012
vCO 5.1 appliance - how-to fix the localhost.localdom certificate
Yesterday I updated my local lab to the brand new vCloud Suite 5.1. The most interesting thing for me was the vCenter Orchestrator appliance and it´s REST API. So after the deployment the appliance came up (I had to disconnect/connect the cd-rom while the certificate was generated) and the typical configuration interface was available.
After some normal tests I had some smaller problems:
1. the logs windows doesn´t show the logs
2. the browser tells me that the ceritifcate isn´t okay
My colleague Christophe Decannini points me in the right direction with the logs problem: the time between appliance and client was different. After changing the time and timezone everything was fine.
The second problem wasn´t this easy to solve. First I created a new certificate with the standard configuration service method:
After that I checked the certificate in my browser and was surprised that the certificate name was localhost.localdom.
A short console test also shows that the common name wasn´t right.
After a few more tests Burke Azbill mentioned his blog article and what should I say... even the linux appliance has the problem (article). So i started the following steps:
1. check for the certificate store
2. delete the old "dunes" ceritficate
3. generate new certificate
4. restart the vCenter Orchestrator appliance
After the restart I checked for the certificate again and everything was okay. Now I can test the new REST API :)
After some normal tests I had some smaller problems:
1. the logs windows doesn´t show the logs
2. the browser tells me that the ceritifcate isn´t okay
My colleague Christophe Decannini points me in the right direction with the logs problem: the time between appliance and client was different. After changing the time and timezone everything was fine.
The second problem wasn´t this easy to solve. First I created a new certificate with the standard configuration service method:
After that I checked the certificate in my browser and was surprised that the certificate name was localhost.localdom.
A short console test also shows that the common name wasn´t right.
After a few more tests Burke Azbill mentioned his blog article and what should I say... even the linux appliance has the problem (article). So i started the following steps:
1. check for the certificate store
2. delete the old "dunes" ceritficate
3. generate new certificate
4. restart the vCenter Orchestrator appliance
After the restart I checked for the certificate again and everything was okay. Now I can test the new REST API :)
Subscribe to:
Posts (Atom)