From: Fernando on
Hi all,

I am using createClassFromWsdl to create methods for a WSDL service. Everything worked fine until we setup the server tu use SSL. I updated the new URL and then I got the following,

??? Error using ==> callSoapService at 70
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to
requested target

We use a company proprietary CA to validate the public key of the server. The browsers have the CA certificate and they can connect with the server. Browsing in the internet I found these instructions (section "Java Applications"),

http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/

I followed that on all the JRE installed in my system (since it is not obvious to me which version MATLAB is using) and I still have problems. What I did is 1) I exported the company proprietary CA certificate ; 2) imported into the JAVA keystores (for all JRE installed) using keytool. Is there anyway I can debug this further?????

Thanks,

Fernando.
From: Ed Yu on
Fernando,

You have to properly identify the version of MATLAB in order to find where the JRE is installed at (MATLAB bundled JRE). I have 2007a and this is my path to the MATLAB JRE (and its keystore):

C:\Program Files\MATLAB\R2007a\sys\java\jre\win32\jre1.5.0_07\lib\security

Ed.
From: Ed Yu on
Fernando,

You have to find the proper place and use keytool to import the CA certificate to get rid of this problem. For example, for my computer, I need to install the CA cert into: C:\Program Files\MATLAB\R2007a\sys\java\jre\win32\jre1.5.0_07\lib\security\cacert to my MATLAB development environment. If you are using a compiled MATLAB executable, it'll be somewhere else...

Hope that helps.

Ed.