X509.Version
------------

Queries the version of the file.

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

MBS( "X509.Version"; X509Ref ) 

**MBS**( **"X509.Version";** /\* Queries the version of the file. \*/  
**$X509Ref**) /\* The reference to the X509 certificate.e.g. $cert \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| X509Ref | The reference to the X509 certificate. | $cert |

### Result

Returns text or error.

### Description

Queries the version of the file.  
Currently usually 2 for version 3.  
### Examples

Shows version:

 Show Custom Dialog \["Version"; MBS ( "X509.Version"; $cert )\]  
### See also

- [Version](Version.md)

This function checks for a license.

Created 23th December 2016 , last changed 9th November 2021

  
[X509.ValidNotBefore](X509ValidNotBefore.md) - [X509.Write](X509Write.md)

[HTML Version](X509Version.shtml)