(UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private

Viewed 1137

I'm seeing this warning:

(UndefinedFunctionError) function :ssl.cipher_suites/0 is undefined or private

My application is crashing with this warning.

I recently upgraded Elixir and Erlang using asdf. How do I start my application now?

1 Answers

This Erlang page says:

Functions Deprecated in OTP 21

  • ssl:cipher_suites/0 (use cipher_suites/2,3 instead)
  • ssl:cipher_suites/1 (use cipher_suites/2,3 instead)

At the time of writing, the

I got it to work by changing the function call to:

:ssl.cipher_suites(:all, :"tlsv1.3")

Reference: Erlang manual for cipher_suites/23

Related