SSL handshake failed - WeOnlyDo Discussion board

SSL handshake failed (wodHttpDLX)

by rindho, Wednesday, November 12, 2014, 20:47 (3664 days ago)

Source
---------
wodHttpDLX1.Certificate.LoadKey P12File, Password
wodHttpDLX1.Certificate.Load PemFile, Password
wodHttpDLX1.Request.Headers.Add "Content-type", "text/xml; charset=utf-8"
wodHttpDLX1.Request.Body = data
DoEvents
wodHttpDLX1.Post "https://202.62.29.5:8443/etopup2way/xmlrpc/"

Response:
----------
ErrorCode: 20014
ErrorText: SSL handshake failed: error:00000001:lib(0):func(0):reason(1)

SSL handshake failed

by Jasmine, Wednesday, November 12, 2014, 21:10 (3664 days ago) @ rindho

Hi Rindho.

Before going into deeper investigation, I must say I get also error in Chrome when I try to open that page. It says 'SSL error' without explanation (after I accepted self-signed cert).

So, could this be server-side issue?

Regards.
Jasmine.

SSL handshake failed

by rindho, Wednesday, November 12, 2014, 21:21 (3664 days ago) @ Jasmine

Thx Jasmine,

yes of course, because it requires a P12 (client cert) file for authentication.

I opened https://202.62.29.5:8443/etopup2way/xmlrpc/ using IE with clientCert(P12) and work well.

But I dont know why,my project cant open that url and got SSL handshake failed messages, even i already put (load) that client cert there.

(sorry bad english)

SSL handshake failed

by Jasmine, Wednesday, November 12, 2014, 22:29 (3664 days ago) @ rindho

Hi Rindho.

It's hard to say without trying. But I suggest that you change your code a bit and force specific SSL version using Secure property

http://www.weonlydo.com/HttpDLX/Help/wodHttpDLX-Secure.html

So, instead of calling

Http1.Post ...

do this

Http1.URL = .....
Http1.Secure = your-choice
Http1.Port = .... (you may need to set port again, Secure could switch it to default)
Http1.Post

can you try that?

Jasmine.