Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-22 Thread Danushka Fernando
Hi Kasun Few questions 1. What is the purpose of *HttpRequestUtil.doGet(backEndUrl + /publisher/login,requestHeaders)* 2. So AFAIU this line also do a http get call and you need to define system properties before this. 3. Did you try to debug the client? What were the findings? 4. What's the

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-22 Thread Kasun Dissanayake
Hi Danushka, I'll answer you according to number 1) This is the url of login. Since out publisher does not have any log in api to call. I'm getting the samlsso url and post form body from this. This gives me the samlsso url, and post body 2) I did that so i get the same error 3) yep. Get

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-22 Thread Danushka Fernando
This may be due to a file permission issue. Try pointing out to a separate copy of the jks file or try changing permission (to 777) of the file. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Sep 22, 2014 at 4:18 PM, Kasun Dissanayake

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-22 Thread Kasun Dissanayake
Hi All/Dhanushka Found the issue. In carbon.xm we are specifying the hostname as localhost but in this the url is local IP address. So that truststores are failing. As a matter of fact I removed the HttpURLConnectionVerifire like follow HttpsURLConnection.setDefaultHostnameVerifier(new

[Dev] Error while SSL handshaking in WSO2 EAM

2014-09-19 Thread Kasun Dissanayake
Hi All, I'm working with log in function in EAM test framework. I need to log in to publisher and it will redirect me to samlsso. The url is https://localhost:9443/samlsso with the body. Since this is a secured port I have added following system properties. String trustStore =

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-19 Thread Manoj Kumara
Hi Kasun, I believe you need to use 'client-truststore.jks' as the truststore not the keystore. This is not the direct example for your case but hope this might help [1]. [1] http://manojwritenotes.blogspot.com/2014/04/how-to-invoke-secured-api-using.html Regards, Manoj *Manoj Kumara*

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-19 Thread Kasun Dissanayake
Hi Manoj. It didn't work On Fri, Sep 19, 2014 at 7:18 PM, Manoj Kumara ma...@wso2.com wrote: Hi Kasun, I believe you need to use 'client-truststore.jks' as the truststore not the keystore. This is not the direct example for your case but hope this might help [1]. [1]

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-19 Thread Danushka Fernando
Hi Here in Axis2 client what we really needs to set is truststore. But since in wso2carbon.jks it contains all trusted keys that contains in client-trustore.jks with wso2carbon.jks also it should work. Can you post the axis2client code here. Then we can have a look at it. Thanks Regards Danushka

Re: [Dev] Error while SSL handshaking in WSO2 EAM

2014-09-19 Thread Manoj Kumara
Hi Kasun, FYI, there is a sample client code in the blog post if you need to check. Please attach your client code if you didn't resolved this as Danushka suggested. Thanks, Manoj *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 On