So I’m using the last version of elixir 1.16
with OTP version 26
Whenever I try to execute a mix task to generate certificates like this:
mix nerves_key.signer create some_signer_name
I get the following error:
** (UndefinedFunctionError) function :pubkey_pem.encode/1 is undefined (module :pubkey_pem is not available)
(public_key 1.15.1) :pubkey_pem.encode([{:Certificate, <<48, 130, 1, 166, 48, 130, 1, 77, 160, 3, 2, 1, 2, 2, 16, 102, 28, 7, 139, 85, 1, 30, 204, 133, 126, 246, 90, 74, 150, 122, 33, 48, 10, 6, 8, 42, 134, 72, 206, 61, 4, 3, 2, 48, 17, 49, 15, ...>>, :not_encrypted}])
(public_key 1.15.1) public_key.erl:213: :public_key.pem_encode/1
(nerves_key 1.2.0) lib/mix/tasks/nerves_key.signer.ex:61: Mix.Tasks.NervesKey.Signer.create/2
(mix 1.16.0) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.16.0) lib/mix/cli.ex:96: Mix.CLI.run_task/2
/home/victor/.local/share/mise/installs/elixir/1.16.0-otp-26/bin/mix:2: (file)
Do I need to somehow add that module to the project? Or should I use another version of OTP?