Page 1 of 1

POST error using self signed certificates

Posted: Wed Dec 01, 2010 9:55 pm
by sytse
We need to secure our HTTP traffic so we are implementing SSL.
However, Revolution refuses to post my data to the requested URL.

The result is set to:

error -Error with certificate at depth: 2 issuer = /C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority subject = /C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority err 19:self signed certificate in certificate chain

It definitely is a "self signed certificate" but I trust it and need to use it.
Does anyone know a way around this error to get Livecode post my data to this 'untrusted server'?

Thanks in advance,
Sytse Zuidema

Re: POST error using self signed certificates

Posted: Wed Dec 01, 2010 11:09 pm
by Klaus
Hi Sytse,

put this before your post command:
...
libUrlSetSSLVerification false
post whatever to url("https://......")
...


Best

Klaus

Re: POST error using self signed certificates

Posted: Thu Dec 02, 2010 10:28 am
by sytse
Klaus, thank you very much: this works perfect!
I knew it should not be too hard but I could not find the libUrlSetSSLVerification in the documentation.
Again thanks, Sytse

Re: POST error using self signed certificates

Posted: Thu Dec 02, 2010 12:29 pm
by Klaus
Hi Sytse,

your are welcome! :-)

Unfortunatyl this is one of the rare things that are not documented, heaven knows why!?

May I ask if you are dutch?
Your name sounds like that :-)


Best from germany

Klaus

Re: POST error using self signed certificates

Posted: Thu Dec 02, 2010 5:14 pm
by sytse
I most certainly am Dutch!
greetings from Amsterdam, Sytse
(just added my location)

Re: POST error using self signed certificates

Posted: Thu Dec 02, 2010 5:25 pm
by Klaus
Ja in dit geval goedenavond Stytse en welkom in deze forum :D

Groetjes

Klaus

Re: POST error using self signed certificates

Posted: Sun Dec 05, 2010 12:25 pm
by Mark
Hi Sytse,

There is also a Dutch forum at http://runrev.info/rrforum

Vriendelijke groet,

Mark