As @luca said – make sure you are running those commands agains the local-by-flywheel
machine and not the default machine.
I also created this FAQ: Local won't turn on - Log says Regenerating Certificates
Which gives a little more background, and links to a possible solution. Let me know if that helps!
– Ben