Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_CERT_AUTHORITY_INVALID exception on Mac #475

Closed
microshine opened this issue Mar 25, 2022 · 4 comments
Closed

ERR_CERT_AUTHORITY_INVALID exception on Mac #475

microshine opened this issue Mar 25, 2022 · 4 comments
Assignees
Labels

Comments

@microshine
Copy link
Collaborator

Fortify adds Fortify Local CA certificate into the trusted list of KeyChain. But certificate is not trusted after that

image

@microshine microshine added the bug label Mar 25, 2022
@microshine microshine self-assigned this Mar 25, 2022
@microshine
Copy link
Collaborator Author

image

Fortify uses the next terminal commands to remove/add SSL certificate

sudo security delete-certificate -c "Fortify Local CA" /Library/Keychains/System.keychain    
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.fortify/ca.pem

Looks like fortify@1.8.3 has got the problem with admin privileges. It uses sudo-prompt module.

@microshine
Copy link
Collaborator Author

Executing of add-trusted-cert via sudo-prompt prints the next message

Error: Command failed: security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.fortify/ca.pem
SecTrustSettingsSetTrustSettings: The authorization was denied since no user interaction was possible.

@microshine
Copy link
Collaborator Author

The issue appears to be the same as: jorangreef/sudo-prompt#137

@donskov donskov mentioned this issue Apr 5, 2022
@donskov
Copy link
Collaborator

donskov commented Jun 20, 2022

@donskov donskov closed this as completed Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants