Certificate pinning and hostname checks for Erlang's ssl
open sourceMITfree
ssl_verify_fun is a collection of SSL verification functions for Erlang. Passed as the verify_fun of an ssl connection, they pin a server's certificate by its fingerprint, pin its public key by hex, base64 or fingerprint, and check the server's hostname against its certificate.
Problems it solves
- pin a server's certificate in an Erlang ssl connection
- check that a TLS server's certificate matches its hostname in Erlang
- reject a TLS connection unless the server's public key is the one I expect
Features
- certificate fingerprint pinning
- public key pinning by hex, base64 or fingerprint
- hostname validation against the server certificate
- plugs into ssl:connect as a verify_fun
