CURL.SetOptionCertInfo
----------------------

Whether to collect certificate information.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionCertInfo"; curl; Value ) 

**MBS**( **"CURL.SetOptionCertInfo";** /\* Whether to collect certificate information. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to collect certificate information.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to collect certificate information. | 1 |

### Result

Returns "OK" on success.

### Description

Whether to collect certificate information.  
Pass a long set to 1 to enable libcurl's certificate chain info gatherer. With this enabled, libcurl (if built with OpenSSL) will extract lots of information and data about the certificates in the certificate chain used in the SSL connection. This data is then possible to extract after a transfer using [CURL.GetCertInfo](CURLGetCertInfo.md).  
See also [CERTINFO](https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html) option in CURL manual.

### Examples

Query certificate information for MBS website:

 Set Variable \[$curl ; Value:MBS ("[CURL.New](CURLNew.md)")\]  
Set Variable \[$result ; Value:MBS ("[CURL.SetOptionURL](CURLSetOptionURL.md)"; $curl ; "https://www.monkeybreadsoftware.com/")\]  
Set Variable \[$result ; Value:MBS ("CURL.SetOptionCertInfo"; $curl ; 1)\]  
Set Field \[CURL Test::Result ; MBS ("[CURL.Perform](CURLPerform.md)"; $curl )\]  
Set Field \[CURL Test::Text ; MBS ("[CURL.GetCertInfo](CURLGetCertInfo.md)"; $curl )\]  
Set Variable \[$result ; Value:MBS ("[CURL.Release](CURLRelease.md)"; $curl )\]  
### See also

- [CURL.GetCertInfo](CURLGetCertInfo.md)
- [CURL.New](CURLNew.md)
- [CURL.Perform](CURLPerform.md)
- [CURL.Release](CURLRelease.md)
- [CURL.SetOptionCAInfo](CURLSetOptionCAInfo.md)
- [CURL.SetOptionURL](CURLSetOptionURL.md)
- [CURL.SetOptionVerbose](CURLSetOptionVerbose.md)

### Example Databases

- [CURL/CURL Certificate Pinning](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Certificate%20Pinning.shtml#1ScriptAnchor_)
- [CURL/CURL with certificates included with FileMaker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20with%20certificates%20included%20with%20FileMaker.shtml#1ScriptAnchor_)

### Blog Entries

- [Use root certificates included with FileMaker](https://www.mbsplugins.de/archive/2018-11-05/Use_root_certificates_included/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 4th March 2023

  
[CURL.SetOptionCRLFile](CURLSetOptionCRLFile.md) - [CURL.SetOptionConnectOnly](CURLSetOptionConnectOnly.md)

[HTML Version](CURLSetOptionCertInfo.shtml)