Skip to content

Commit c526a32

Browse files
committed
Add ensure_all_started :public_key
1 parent 418cb31 commit c526a32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/package/macos.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ defmodule Desktop.Deployment.Package.MacOS do
357357
@friendly_attribute {2, 5, 4, 3}
358358
def locate_uid(pem_filename) do
359359
cert = File.read!(pem_filename)
360+
# Test for missing public_key application
361+
# ref https://elixirforum.com/t/nerves-key-hub-mix-tasks-fail-because-of-missing-pubkey-pem-module/62821/2
362+
{:ok, _started} = Application.ensure_all_started(:public_key)
360363
cert_der = List.keyfind!(:public_key.pem_decode(cert), :Certificate, 0)
361364

362365
:public_key.der_decode(:Certificate, elem(cert_der, 1))

0 commit comments

Comments
 (0)