Xojo Conferences
XDCMay2019MiamiUSA

[MBS] cURL-Parameters (MBS FileMakerPlugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Blog article about using Webviewer functions
Next thread: [MBS] [ANN] 2.5pr2


[MBS] cURL-Parameters   -   Holger Herbst
  Re: [MBS] cURL-Parameters   -   Holger Herbst
  Re: [MBS] cURL-Parameters   -   Christian Schmitz

[MBS] cURL-Parameters
Date: 12.12.11 12:47 (Mon, 12 Dec 2011 12:47:48 +0100)
From: Holger Herbst
Hi,
new to the list an first post

Environment:
FMA9
Mac OS X 10.6.8
MacBook Pro
MBS 2.5.0pr2

I am testing the prerelease 2.5 cURL-functions. I want to send a httppost to a server that requires SSL and has a certificate. Certificate can be viewed in my keychain. With a right-klick of the mouse I have copied it to my desktop as a .pem - file. I tried to connect to the server via MBS-Call

apart from CURL.New
I used:
CURL.SetOptionURL
CURL.SetOptionSSLVersion
CURL.SetOptionSSLCert (Path to the .pem-file on my desktop "/Users/hherbst/Desktop/xxx.pem")
CURL.SetOptionCertType (PEM)

also tried to include
CURL.SetOptionUsername
CURL.SetOptionUserPWD

About to connect() to 192.168.10.4 port 7901 (#0)
Trying 192.168.10.4... connected
Connected to 192.168.10.4 (192.168.10.4) port 7901 (#0)
unable to use client certificate (no key found or wrong pass phrase?)
Closing connection #0
Problem with the local SSL certificate

was the only response I got in FileMaker

via terminal this works:

curl --user Test:Test0815 --insecure https://192.168.10.4:7901/Lizenzverwaltung.svc/help

for debugging the parameter "--insecure" leads to ingnorance of the certification

Is there any way to get this command with MBS? Which calls do I have to use?

thanks in advanced

Holger
_______________________________________________
Mbsfmplugin_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsfmplugin_monkeybreadsoftware.info

Re: [MBS] cURL-Parameters
Date: 12.12.11 13:26 (Mon, 12 Dec 2011 13:26:43 +0100)
From: Holger Herbst
This worked with all other SSL-Parameters disabled
Now the connect works
Thank you

Am 12.12.2011 um 13:21 schrieb Christian Schmitz:

>
> Am 12.12.2011 um 12:47 schrieb Holger Herbst:
>
>> Hi,
>> for debugging the parameter "--insecure" leads to ingnorance of the certification
>
> MBS( "CURL.SetOptionSSLVerifyHost"; handle; 0 )
> MBS( "CURL.SetOptionSSLVerifyPeer"; handle; 0 )
>
> setting both to 0 will ignore security.
>
> PS: We'll have to figure out after Christmas about why your certificate is not read.
>
> Greetings
> Christian
>
> --
> See you in Orlando, Florida for Real World 2012
>
> More details and registration here:
> http://www.realsoftware.com/community/realworld.php
>
>
>
> _______________________________________________
> Mbsfmplugin_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsfmplugin_monkeybreadsoftware.info

Gruß
Holger Herbst

_______________________________________________
Mbsfmplugin_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsfmplugin_monkeybreadsoftware.info

Re: [MBS] cURL-Parameters
Date: 12.12.11 13:21 (Mon, 12 Dec 2011 13:21:19 +0100)
From: Christian Schmitz

Am 12.12.2011 um 12:47 schrieb Holger Herbst:

> Hi,
> for debugging the parameter "--insecure" leads to ingnorance of the certification

MBS( "CURL.SetOptionSSLVerifyHost"; handle; 0 )
MBS( "CURL.SetOptionSSLVerifyPeer"; handle; 0 )

setting both to 0 will ignore security.

PS: We'll have to figure out after Christmas about why your certificate is not read.

Greetings
Christian