Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Socket.SSL.UseCertificateFile
Defines to use a certificate key file for this SSL socket.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Socket.SSL.UseCertificateFile"; SocketID; Path; Type ) More
Parameters
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
Path | The path to the certificate file. | $path |
Type | The type of the file. Can be "PEM" or "ASN1". | "PEM" |
Result
Returns OK on success or error.
Description
Defines to use a certificate key file for this SSL socket.This function requires a native path. Use Path.FileMakerPathToNativePath 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 functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
See also
This function checks for a license.
Created 18th August 2014, last changed 5th September 2014