TLS: how to disable {fail_if_no_peer_cert,true} when starting a node

,

I’m using the Erlang ssl module as a client to connect to a remote SSL server (not under my control) and getting this:

{badmatch,{error,{options,incompatible,{verify,verify_none},{fail_if_no_peer_cert,true}}}}

I’m using:

Erlang 24.3.4.4
Linux CentOS 7

Thanks

1 Like

Hello,

{verify, verify_none} and {fail_if_no_peer_cert,true} are incompatible (as the error says).
There’s an explanation here: ERL-1394: SSL Options  {verify, verify_none} in rabbitMQ v3.8.x · Issue #4279 · erlang/otp · GitHub

3 Likes