View Source tls_certificate_check (tls_certificate_check v1.15.0)

Main API

Link to this section Summary

Functions

Returns the list of ssl:connect options necessary to validate the server certificate against a list of trusted authorities, as well as to verify whether the server hostname matches one in the server certificate.

Returns the list of trusted authorities.

Link to this section Types

Link to this section Functions

Specs

options(Target) -> Options
           when
               Target :: Hostname | URL,
               Hostname :: iodata(),
               URL :: iodata(),
               Options :: [option()].

Returns the list of ssl:connect options necessary to validate the server certificate against a list of trusted authorities, as well as to verify whether the server hostname matches one in the server certificate.

  • Target can be either a hostname or an HTTP URL, as iodata()

Specs

trusted_authorities() -> CAs when CAs :: [public_key:der_encoded(), ...].
Returns the list of trusted authorities.