# Check OPC-UA certificate expire date on gateway scripts: possible?

**URL:** <https://forum.inductiveautomation.com/t/check-opc-ua-certificate-expire-date-on-gateway-scripts-possible/64661>\
**Category:** Ignition\
**Tags:** ignition79, ignition80, vision, ignition81\
**Created:** [September 29, 2022, 2:43pm UTC](https://forum.inductiveautomation.com/t/check-opc-ua-certificate-expire-date-on-gateway-scripts-possible/64661 "2022-09-29T14:43:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n.meluccio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/n.meluccio/32/4858_2.png) [@n.meluccio](https://forum.inductiveautomation.com/u/n.meluccio)\
**Post date:** [September 29, 2022, 2:43pm UTC](https://forum.inductiveautomation.com/t/check-opc-ua-certificate-expire-date-on-gateway-scripts-possible/64661/1 "2022-09-29T14:43:24Z")

</div>

Hello there,  
is there a way to get the expiration date of the OPC-UA in the gateway event scripts?  
or, at least, a way to show it on Vision client?

Because it’ll be cool to prevent the expiration of this and prevent the vision client from becoming all red.

Thank you.  
N.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 1, 2022, 1:21pm UTC](https://forum.inductiveautomation.com/t/check-opc-ua-certificate-expire-date-on-gateway-scripts-possible/64661/2 "2022-10-01T13:21:05Z")

</div>

Perhaps you could use one of these values:

```auto
system.opc.readValue("Server Name", "Path").getTimestamp()
#or
system.opc.readValue("Server Name", "Path").getQuality()

```
