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

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.

Perhaps you could use one of these values:

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