【问题标题】:(UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private(UndefinedFunctionError) function :ssl.cipher_suites/1 未定义或私有
【发布时间】:2021-08-28 13:13:29
【问题描述】:

我看到了这个警告:

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

我的应用程序因此警告而崩溃。

我最近使用 asdf 升级了 Elixir 和 Erlang。我现在如何启动我的应用程序?

【问题讨论】:

标签: ssl erlang elixir


【解决方案1】:

This Erlang page 说:

OTP 21 中已弃用的函数

  • ssl:cipher_suites/0(改用 cipher_suites/2,3)
  • ssl:cipher_suites/1(改用 cipher_suites/2,3)

在撰写本文时,

我通过将函数调用更改为:

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

参考:Erlang manual for cipher_suites/23

【讨论】:

    猜你喜欢
    • 2019-04-12
    • 2021-09-04
    • 2016-12-09
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多