PKey.Type
---------

Queries the type of key.

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

MBS( "PKey.Type"; PKeyRef ) 

**MBS**( **"PKey.Type";** /\* Queries the type of key. \*/  
**$PKeyRef**) /\* The reference to the private key.e.g. $pkey \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PKeyRef | The reference to the private key. | $pkey |

### Result

Returns text or error.

### Description

Queries the type of key.  
Can be DH, DSA, RSA or EC.  
This function checks for a license.

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

  
[PKey.ReleaseAll](PKeyReleaseAll.md) - [PList.ReadData](PListReadData.md)

[HTML Version](PKeyType.shtml)