Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

PKey.ReadFromFile

Reads a key from a PEM file.

Component Version macOS Windows Linux Server iOS SDK
Certificates 11.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "PKey.ReadFromFile"; Path { ; Password } )   More

Parameters

Parameter Description Example Flags
Path The native file path to the PEM file. "/Users/cs/Desktop/test.pem"
Password For encrypted private keys, the password to use. "test" Optional

Result

Returns PKey reference number or error.

Description

Reads a key from a PEM file.

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

Release notes

Blog Entries

This function checks for a license.

Created 22nd August 2021, last changed 24th August 2021


PKey.ReadFromContainer - PKey.Release