Library sslcert
A library providing functions for collecting SSL certificates and storing them in the host-based registry.
The library is largely based on code (copy-pasted) from David Fifields ssl-cert script in an effort to allow certs to be cached and shared among other scripts.
Author:
| "Patrik Karlsson <patrik@cqure.net>" |
Source: http://nmap.org/svn/nselib/sslcert.lua
Functions
| getCertificate (host, port) |
Gets a certificate for the given host and port The function will attempt to START-TLS for the ports known to require it. |
Functions
- getCertificate (host, port)
-
Gets a certificate for the given host and port The function will attempt to START-TLS for the ports known to require it.
Parameters
- host: table as received by the script action function
- port: table as received by the script action function
Return values:
- status true on success, false on failure
- cert userdata containing the SSL certificate, or error message on failure.


