Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

CURL.SetOptionSSLKeyType

Sets the format of the private key.

Component Version macOS Windows Linux Server FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionSSLKeyType"; curl; Value { ; Encoding } )   More

Parameters

Parameter Description Example Flags
curl The CURL session handle. $curl
Value The key type. "PEM"
Encoding The text encoding for text parameter.
Default is UTF-8.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
"UTF8" Optional

Result

Returns "OK" on success.

Description

Sets the format of the private key.
Pass a string as parameter. The string should be the format of your private key. Supported formats are "PEM", "DER" and "ENG".

The format "ENG" enables you to load the private key from a crypto engine. In this case CURL.SetOptionSSLKey is used as an identifier passed to the engine. You have to set the crypto engine with CURL.SetOptionSSLEngine. "DER" format key file currently does not work because of a bug in OpenSSL.

See also SSLKEYTYPE option in CURL manual.

See also

Created 18th August 2014, last changed 5th July 2015


CURL.SetOptionSSLKeyBlob   -   CURL.SetOptionSSLOptions

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat