PKCS12.Cert
-----------

Queries the X509 certificate in the PKCS12 file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Certificates](component_Certificates.md) | [7.0](newinversion70.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "PKCS12.Cert"; PKCS12 Reference ) 

**MBS**( **"PKCS12.Cert";** /\* Queries the X509 certificate in the PKCS12 file. \*/  
**$PKCS12 Reference**) /\* The reference to the PKCS12.e.g. $pkcs12 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PKCS12 Reference | The reference to the PKCS12. | $pkcs12 |

### Result

Returns X509 reference number or error.

### Description

Queries the X509 certificate in the PKCS12 file.  
### Examples

Get certificate:

 Set Variable \[$cert ; Value:MBS ( "PKCS12.Cert"; $p12 )\]  
### See also

- [PKCS12.List](PKCS12List.md)
- [PKCS12.ReadFromContainer](PKCS12ReadFromContainer.md)
- [PKCS12.ReadFromFile](PKCS12ReadFromFile.md)

This function checks for a license.

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

  
[PKCS12.CACount](PKCS12CACount.md) - [PKCS12.List](PKCS12List.md)

[HTML Version](PKCS12Cert.shtml)