X509.SerialNumber
-----------------

Queries the serial number.

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

MBS( "X509.SerialNumber"; X509Ref ) 

**MBS**( **"X509.SerialNumber";** /\* Queries the serial number. \*/  
**$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 serial number.  
### Examples

Shows the serial number:

 Show Custom Dialog \["Serial Number"; MBS ( "X509.SerialNumber"; $cert )\]  
Shows serial and description:

 Set Variable \[$cert ; Value:MBS ( "X509.ReadFromFile"; "/Users/cs/Desktop/test.pem" )\]  
Show Custom Dialog \["Serial"; MBS ( "X509.SerialNumber"; $cert )\]  
Show Custom Dialog \["Description"; MBS ( "X509.Description"; $cert )\]  
Set Variable \[$r ; Value:MBS ( "X509.Release"; $cert )\]  
### See also

- [X509.Description](X509Description.md)
- [X509.Read](X509Read.md)
- [X509.ReadFromFile](X509ReadFromFile.md)
- [X509.Release](X509Release.md)

This function checks for a license.

Created 23th December 2016 , last changed 14th March 2017

  
[X509.ReleaseAll](X509ReleaseAll.md) - [X509.ShowDialog](X509ShowDialog.md)

[HTML Version](X509SerialNumber.shtml)