Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

PKCS12.ReadFromContainer

Not yet documented

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Certificates 7.0 Yes Yes Yes Yes Yes

MBS( "PKCS12.ReadFromContainer"; Container; Password )

Parameters

Parameter Description Example value
Container The container with the certificate file.
Password The password for the p12 file. "Hello"

Result

Returns PKCS12 reference number or error.

Description

Not yet documented

Examples

Read PKCS12 from container and shows details:

Set Variable [$p12; Value:MBS( "PKCS12. ReadFromContainer"; MyTable::MyContainerField; "test" )]
If [MBS("IsError")]
    Show Custom Dialog ["Error"; $p12]
Else
    Set Variable [$cert; Value:MBS( "PKCS12.Cert"; $p12 )]
    Set Variable [$pkey; Value:MBS( "PKCS12.PKey"; $p12 )]
    Set Variable [$CACount; Value:MBS( "PKCS12.CACount"; $p12 )]
    Show Custom Dialog ["Certificate"; MBS( "X509.Description"; $cert )]
    Show Custom Dialog ["Private Key"; MBS( "PKey.DescriptionPrivateKey"; $pkey )]
    Set Variable [$r; Value:MBS( "PKey.Release"; $pkey )]
    Set Variable [$r; Value:MBS( "X509.Release"; $cert )]
    Set Variable [$r; Value:MBS( "PKCS12.Release"; $p12 )]
End If

See also


PKCS12.PKey   -   PKCS12.ReadFromFile

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins