package
0.0.0-20250120080617-bb7c638c6f78
Repository: https://github.com/chainreactors/mals.git
Documentation: pkg.go.dev

# README

cert_util GoDoc

Functions

  • not_after(hostname, ip:port) - returns unix timestamp for hostname's ssl certificate expiration date. If a second argument will not be passed then will be used default (hostname:443).

Examples

local cert_util = require("cert_util")

local tx, err = cert_util.not_after("google.com", "64.233.165.101:443")
if err then error(err) end
if not(tx == 1548838740) then error("error!") end

# Functions

Loader is the module loader function.
NotAfter lua cert.not_after(hostname, <ip>) returns (unixts cert_not_after, err).
Preload adds cert_util to the given Lua state's package.preload table.