zotonic_ssl_option (zotonic_ssl v2.0.0)
View SourceSSL support functions, easily get safe options to initialize safe ssl sockets
Summary
Functions
Return the list of ciphers for http connections. This is a re-ordered list that comes from https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices#23-use-secure-cipher-suites
Return safe ssl socket options
Remove cipher suites which are not available by the underlying crypto library.
Remove the unsafe cipher suites from the provided list.
Return a list with safe tls versions provided by this erlang installation.
Sort the cipher suite into a preferrable safe order.
Types
Functions
-spec ciphers() -> [string()].
Return the list of ciphers for http connections. This is a re-ordered list that comes from https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices#23-use-secure-cipher-suites
Return safe ssl socket options
Remove the unsafe cipher suites from the provided list.
-spec safe_protocol_versions() -> [tls_version()].
Return a list with safe tls versions provided by this erlang installation.
Sort the cipher suite into a preferrable safe order.