CURL.SetOptionProxyPinnedPublicKey
----------------------------------

Sets pinned public key for proxy.

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

MBS( "CURL.SetOptionProxyPinnedPublicKey"; curl; Path ) 

**MBS**( **"CURL.SetOptionProxyPinnedPublicKey";** /\* Sets pinned public key for proxy. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Path**) /\* The file path. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Path | The file path. |  |

### Result

Returns OK or error.

### Description

Sets pinned public key for proxy.  
The public key in DER form used to validate the proxy public key.   
This option is used only if [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md) is true.  
Please path native file path to key file.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
See also [PROXY\_PINNEDPUBLICKEY](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html) option in CURL manual.

### See also

- [CURL.SetOptionPinnedPublicKey](CURLSetOptionPinnedPublicKey.md)
- [CURL.SetOptionProxy](CURLSetOptionProxy.md)
- [CURL.SetOptionProxySSLVerifyPeer](CURLSetOptionProxySSLVerifyPeer.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

Created 15th April 2018 , last changed 16th April 2018

  
[CURL.SetOptionProxyPassword](CURLSetOptionProxyPassword.md) - [CURL.SetOptionProxyPort](CURLSetOptionProxyPort.md)

[HTML Version](CURLSetOptionProxyPinnedPublicKey.shtml)