Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

BigSur 11.1 issue: The authorization was denied since no user interaction was possible #137

@kotapeter

Description

@kotapeter

If macOS asks password more than 1 it'll fail with the error message in the title.

For example if we want to save an x509 certificate into keychain. On Apple machines with BigSur 11.1 asks password twice. (who knows why..)

(I've tested with Intel mac and it works properly)

Reproduce:

Here is our command:

security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "/Users/user/ssl/mysite.local.crt"

If you run this in terminal with sudo prefix then terminal'll ask your password and after that an OS dialog will be prompted and asks your password again. (video attached)

If you'd like to run the command with sudo-prompt (video attached) then you will get the following error:

The authorization was denied since no user interaction was possible

Because sudo-prompt hides the second dialog.

UPDATE

On the first video you cannot see password dialog because screencast app hides it. After I typed my pass in terminal an OS dialog came up and asked my pass again.

Screen.Recording.2021-01-14.at.19.04.26.mov
Screen.Recording.2021-01-14.at.19.06.37.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions