Skip to content

fix: race condition when installing root cert#9

Open
xotea wants to merge 1 commit into
expo:masterfrom
xotea:fix-race-condition
Open

fix: race condition when installing root cert#9
xotea wants to merge 1 commit into
expo:masterfrom
xotea:fix-race-condition

Conversation

@xotea
Copy link
Copy Markdown

@xotea xotea commented Mar 25, 2026

When you are trying to install a certificate first uninstall() is called. This is an async function that is currently not being awaited.

This could cause an interesting interaction where commands just so happened to be ran in an order so that the just created root certificate was immediately rm -rf-ed and when it tried to install it, you got Error reading file.

This has predictably happened on my machine every time.

With this simple change it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant