Skip to content

Commit

Permalink
TLS & httpc: suggested higher limit of max intermediate certs (#701)
Browse files Browse the repository at this point in the history
TLS: raise limit on max intermediate certs to same as OpenSSL

Prevents validation error for endpoints presenting a longer certificate
chain.

Reference:
* https://docs.openssl.org/3.3/man3/SSL_CTX_set_verify/#notes
  • Loading branch information
g-andrade authored Aug 5, 2024
1 parent aef6a87 commit e21d0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla/adapter/httpc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Tesla.Adapter.Httpc do
ssl: [
verify: :verify_peer,
cacerts: :public_key.cacerts_get(),
depth: 3,
depth: 100,
customize_hostname_check: [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
],
Expand Down

0 comments on commit e21d0a3

Please sign in to comment.