PKCS12.PKey
-----------

Queries the private key from 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.PKey"; PKCS12 Reference ) 

**MBS**( **"PKCS12.PKey";** /\* Queries the private key from 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 PKey reference number or error.

### Description

Queries the private key from the PKCS12 file.  
### Examples

Get private key:

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

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

This function checks for a license.

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

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

[HTML Version](PKCS12PKey.shtml)