Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Reads a certificate from a PEM file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Certificates 7.0 Yes Yes Yes Yes Yes
MBS( "X509.ReadFromFile"; Path )   More


Parameter Description Example value
Path The native file path to the PEM file. "/Users/cs/Desktop/test.pem"


Returns X509 reference number or error.


Reads a certificate 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.


Reads a certificate and shows name:

Set Variable [$cert; Value:MBS( "X509.ReadFromFile"; "/Users/cs/Desktop/test.pem" )]
If [MBS("IsError")]
    Show Custom Dialog ["Error"; $cert]
    Show Custom Dialog ["Name"; MBS( "X509.Name"; $cert )]
    Set Variable [$r; Value:MBS( "X509.Release"; $cert )]
End If

See also

Created 23th December 2016, last changed 23th December 2016

X509.ReadFromContainer   -   X509.Release

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins