Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

CURL.UseSystemCertificates

Read certificate from system and installs them in CURL session,.

Component: CURL
Version: 7.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: No

MBS( "CURL.UseSystemCertificates"; Handle )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl

Result

Returns number or error.

Description

Read certificate from system and installs them in CURL session,.
For macOS and Windows we load the available certificates from keychain or Windows Certificate Store and pass them to CURL. This is better than having no certificates at all.
Even better is normally to provide a cacert.pem file with only the expected certificates.
Returns number of certificates loaded.

Examples

Enable system certificates:

Set Variable [$result; Value:MBS("CURL.UseSystemCertificates"; $curl)]
Set Variable [$result; Value:MBS("CURL.SetOptionSSLVerifyPeer"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetOptionSSLVerifyHost"; $curl; 2 )]

See also


CURL.SetupAWS   -   CURL.Version

Feedback: Report problem or ask question.




Links
MBS Real Studio PDF Plugins - Förderverein St. Arnulf Nickenich