ssl_checker v0.1.0 SslChecker View Source

Main Modules

Link to this section Summary

Functions

checks SSL validity of the supplied host. It takes the host and optional port as parameter. Port defaults to 443

Link to this section Functions

Link to this function check(host, port \\ 443) View Source

checks SSL validity of the supplied host. It takes the host and optional port as parameter. Port defaults to 443

Returns a map containing results

Examples

iex> SslChecker.check("github.com", 443)
%{
    "issuer" => "DigiCert Inc",
    "notAfter" => "May 17 12:00:00 2018 GMT",
    "notBefore" => "Mar 10 00:00:00 2016 GMT",
    "subject" => "GitHub, Inc."
}

iex> SslChecker.check("invalid.host", 443)
"unable to load certificate"