I’ve the pleasure to announce the release of
tls_certificate_check, a library that packs the boilerplate required for verifying the authenticity of certificates presented by TLS servers against a list of trusted certificate authorities.
It’s simple enough to use:
host = "example.com" port = 443 tls_options = :tls_certificate_check.options(host) :ssl.connect(host, 443, tls_options)
You’ll no longer need to copy the usual CA validation boilerplate everywhere!