Mwnci sitecertexp() Function

Syntax

sitecertexp(string)

Description

The sitecertexp() returns an integer representing the amount of days left before the certificate expires for the given domain.
If the data cannot be read, or unable to retrieve the information, false is returned.

Example

include("cert")
Days=sitecertexp("debian.org")
println("The cert expires in ", Days, " days.")

The cert expires in 59 days.