POST error using self signed certificates

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sytse
Posts: 3
Joined: Wed Dec 01, 2010 9:22 pm

POST error using self signed certificates

Post by sytse » Wed Dec 01, 2010 9:55 pm

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: POST error using self signed certificates

Post by Klaus » Wed Dec 01, 2010 11:09 pm

Hi Sytse,

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


Best

Klaus

sytse
Posts: 3
Joined: Wed Dec 01, 2010 9:22 pm

Re: POST error using self signed certificates

Post by sytse » Thu Dec 02, 2010 10:28 am

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: POST error using self signed certificates

Post by Klaus » Thu Dec 02, 2010 12:29 pm

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

sytse
Posts: 3
Joined: Wed Dec 01, 2010 9:22 pm

Re: POST error using self signed certificates

Post by sytse » Thu Dec 02, 2010 5:14 pm

I most certainly am Dutch!
greetings from Amsterdam, Sytse
(just added my location)

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: POST error using self signed certificates

Post by Klaus » Thu Dec 02, 2010 5:25 pm

Ja in dit geval goedenavond Stytse en welkom in deze forum :D

Groetjes

Klaus

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: POST error using self signed certificates

Post by Mark » Sun Dec 05, 2010 12:25 pm

Hi Sytse,

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

Vriendelijke groet,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply