diff --git a/generate_keys/main.swift b/generate_keys/main.swift index f0cae114..6aa89e8f 100644 --- a/generate_keys/main.swift +++ b/generate_keys/main.swift @@ -31,6 +31,8 @@ func findPublicKey() -> Data? { } else if res == errSecUserCanceled { print("\nABORTED! You've cancelled the request to read the key from the Keychain. Please run the tool again."); + } else if res == errSecInteractionNotAllowed { + print("\nERROR! The operating system has blocked access to the Keychain."); } else { print("\nERROR! Unable to access existing item in the Keychain", res, "(you can look it up at osstatus.com)"); } diff --git a/sign_update/main.swift b/sign_update/main.swift index 9caabb9d..da962823 100644 --- a/sign_update/main.swift +++ b/sign_update/main.swift @@ -30,6 +30,8 @@ func findKeys() -> (Data, Data) { } else if res == errSecUserCanceled { print("ABORTED! You've cancelled the request to read the key from the Keychain. Please run the tool again."); + } else if res == errSecInteractionNotAllowed { + print("ERROR! The operating system has blocked access to the Keychain."); } else { print("ERROR! Unable to access required key in the Keychain", res, "(you can look it up at osstatus.com)"); }