Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] MBS FileMaker Plug, Using CURL with SSL (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] NStableView events don't fire
Next thread: [MBS] [ANN] 13.0pr6


Re: [MBS] PortAudio bug?   -   Garth Hjelte
  [MBS] MBS FileMaker Plug, Using CURL with SSL   -   Jeremy Wood
   Re: [MBS] MBS FileMaker Plug, Using CURL with SSL   -   Christian Schmitz

[MBS] MBS FileMaker Plug, Using CURL with SSL
Date: 04.01.13 00:10 (Thu, 3 Jan 2013 15:10:07 -0800)
From: Jeremy Wood
I'm trying to figure out how to get CURL to work with SSL in FileMaker. I'm
trying to call an API (Shopify) that requires SSL. I keep getting the error
"58: unable to use client certificate (no key found or wrong pass
phrase?)". I tried different certificates without any luck. This is the
certificate that I've used in the past in some PHP projects like this, with
no problems: http://curl.haxx.se/docs/caextract.html

I can ignore the cert by turning off verify peer, but that's not great.

Anybody else have better luck with this?

Regards,

Jeremy
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] MBS FileMaker Plug, Using CURL with SSL
Date: 04.01.13 11:54 (Fri, 4 Jan 2013 11:54:20 +0100)
From: Christian Schmitz
Hi,

on Real Studio you do it like this:

d.OptionSSLVerifyHost = 2 // verify server
d.OptionSSLVerifyPeer = 1 // proofs certificate is authentic
d.OptionCAInfo = cacert.UnixpathMBS

where cacert is the cacert.pem file from curl website.

In Filemaker:

MBS( "CURL.SetOptionCAInfo"; $curl; $cacertPath )
MBS( "CURL.SetOptionSSLVerifyHost"; $curl; 2 )
MBS( "CURL.SetOptionSSLVerifyPeer"; $curl; 1 )

Greetings
Christian