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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries certificate with given index.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Certificates | 7.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
PKCS12 Reference | The reference to the PKCS12. | $pkcs12 |
Index | The index of the certificate to get. From 0 to PKCS12.CACount-1. |
0 |
Returns X509 reference number or error.
Query certificates:
Set Variable [$p12; Value:MBS( "PKCS12.ReadFromContainer"; test::Container; "Geslo123#" )]
If [MBS("IsError")]
Show Custom Dialog ["Error"; $p12]
Else
Set Variable [$count; Value:MBS( "PKCS12.CACount"; $p12 )]
Set Variable [$index; Value:0]
Loop
Set Variable [$cert; Value:MBS( "PKCS12.CA"; $p12; $index )]
Show Custom Dialog ["Certificate"; MBS( "X509.Description"; $cert )]
Set Variable [$r; Value:MBS( "X509.Release"; $cert )]
# next
Set Variable [$index; Value:$index + 1]
Exit Loop If [$index >= $count]
End Loop
Set Variable [$r; Value:MBS( "PKCS12.Release"; $p12 )]
End If
Created 23th December 2016, last changed 23th December 2016
Feedback: Report problem or ask question.