We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418cb31 commit c526a32Copy full SHA for c526a32
lib/package/macos.ex
@@ -357,6 +357,9 @@ defmodule Desktop.Deployment.Package.MacOS do
357
@friendly_attribute {2, 5, 4, 3}
358
def locate_uid(pem_filename) do
359
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)
363
cert_der = List.keyfind!(:public_key.pem_decode(cert), :Certificate, 0)
364
365
:public_key.der_decode(:Certificate, elem(cert_der, 1))
0 commit comments