Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The customize_hostname_check needs to be set to a fun that performs
https style hostname checks. Different protocols using tls wants different handling of hostname matching in certificates, ie https and ldap differ in how wildcards should be handled. By default wildcards are not handled correctly for https, ie connecting to https://aus.auth0.com does not work if with tls_opts => [{verify,verify_peer}, {cacertfile, "/etc/ssl/certs/ca-certificates.crt"}] It also needs CustomFun = public_key:pkix_verify_hostname_match_fun(https), {customize_hostname_check, [{match_fun, CustomFun}]}
- Loading branch information