Simplify TLS opts

- `verify_fun` is not useful now
- use `customize_check_hostname` (OTP 20+ so OK)
- `partial_chain` is useless as of OTP 21.1 (wasn't there, but hackney/..
uses it)
This commit is contained in:
href 2020-07-08 15:12:09 +02:00 committed by rinpatch
commit ce1a42bd04
2 changed files with 2 additions and 31 deletions

View file

@ -28,9 +28,8 @@ defmodule Pleroma.Gun.Conn do
cacertfile: CAStore.file_path(),
depth: 20,
reuse_sessions: false,
verify_fun:
{&:ssl_verify_hostname.verify_fun/3,
[check_hostname: Pleroma.HTTP.AdapterHelper.format_host(host)]}
log_level: :warning,
customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)]
]
tls_opts =