[GH-ISSUE #355] Uninstall fails to uninstall #232

Closed
opened 2026-02-25 22:32:55 +03:00 by kerem · 6 comments
Owner

Originally created by @CelsoSantos on GitHub (Mar 15, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/355

When trying to uninstall the certificates, mkcert fails with the following message

ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

Here's the shell output:

$ mkcert -CAROOT
/Users/zed/Library/Application Support/mkcert

$ mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

$ sudo mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

Originally created by @CelsoSantos on GitHub (Mar 15, 2021). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/355 When trying to uninstall the certificates, `mkcert` fails with the following message ``` ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found. ``` Here's the shell output: ``` $ mkcert -CAROOT /Users/zed/Library/Application Support/mkcert $ mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found. $ sudo mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found. ```
kerem closed this issue 2026-02-25 22:32:55 +03:00
Author
Owner

@felipevalois commented on GitHub (May 2, 2021):

@CelsoSantos any luck with that?

<!-- gh-comment-id:830717390 --> @felipevalois commented on GitHub (May 2, 2021): @CelsoSantos any luck with that?
Author
Owner

@CelsoSantos commented on GitHub (May 4, 2021):

No... I'm still waiting on a response

<!-- gh-comment-id:831833346 --> @CelsoSantos commented on GitHub (May 4, 2021): No... I'm still waiting on a response
Author
Owner

@5265949743 commented on GitHub (May 26, 2021):

$ mkcert -CAROOT
/Users/zed/Library/Application Support/mkcert

$ mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

$ sudo mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

<!-- gh-comment-id:849118516 --> @5265949743 commented on GitHub (May 26, 2021): $ mkcert -CAROOT /Users/zed/Library/Application Support/mkcert $ mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found. $ sudo mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.
Author
Owner

@5265949743 commented on GitHub (May 26, 2021):

$ mkcert -CAROOT
/Users/zed/Library/Application Support/mkcert

$ mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

$ sudo mkcert -uninstall
ERROR: failed to execute "security remove-trusted-cert": exit status 1

SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.

<!-- gh-comment-id:849119083 --> @5265949743 commented on GitHub (May 26, 2021): $ mkcert -CAROOT /Users/zed/Library/Application Support/mkcert $ mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found. $ sudo mkcert -uninstall ERROR: failed to execute "security remove-trusted-cert": exit status 1 SecTrustSettingsRemoveTrustSettings: No Trust Settings were found.
Author
Owner

@CelsoSantos commented on GitHub (Jul 19, 2021):

Just an update: I revisited this issue today and it might be a non-issue.
The command to uninstall only fails with this message when it has already been uninstalled before.

If one executes --install before --uninstall, the uninstall process goes OK. However, even after uninstall the rootCA files persist on /Library/Application Support/mkcert and I feel like they should be deleted when the uninstall command is executed.
It's also not entirely clear if uninstalling will actually remove the certificate from the keystores to which it was added upon request to generate a new one.

Could the uninstall process be a bit more detailed @FiloSottile ? I'd be available to help document it

<!-- gh-comment-id:882864227 --> @CelsoSantos commented on GitHub (Jul 19, 2021): Just an update: I revisited this issue today and it *might* be a non-issue. The command to uninstall only fails with this message when it has already been uninstalled before. If one executes `--install` before `--uninstall`, the uninstall process goes OK. However, even after uninstall the rootCA files persist on `/Library/Application Support/mkcert` and I feel like they should be deleted when the uninstall command is executed. It's also not entirely clear if uninstalling will actually remove the certificate from the keystores to which it was added upon request to generate a new one. Could the uninstall process be a bit more detailed @FiloSottile ? I'd be available to help document it
Author
Owner

@kdambekalns commented on GitHub (Dec 14, 2021):

Well, mkcert -help says:

	$ mkcert -uninstall
	Uninstall the local CA (but do not delete it).
<!-- gh-comment-id:993491613 --> @kdambekalns commented on GitHub (Dec 14, 2021): Well, `mkcert -help` says: ``` $ mkcert -uninstall Uninstall the local CA (but do not delete it). ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#232
No description provided.