• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Draft / Local by Flywheel Regenerating Machine Certificates

Local by Flywheel Regenerating Machine Certificates

Last updated on September 27, 2020 by Sal Ferrarello

Recently, when I tried to run Local by Flywheel I received the notification

Regenerating Machine Certificates
Local detected invalid Docker Machine TLS certificates and is fixing them now.

Unfortunately this notification kept popping up over and over and Local by Flywheel was unusable.

Local By Flywheel Regenerating Machine Certificates Notification.

This thread on the Local by Flywheel support forum provided the solution but required some hunting so I’m documenting the solution for my Mac here.

Step 1: Quit Local

Quit local.

Step 2: Create Docker Alias

From the command line, run

alias local-docker-machine="/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine"

and wait for it to complete.

Step 3: Regenerate Certs

When the previous command has finished, from the command line, run

local-docker-machine stop local-by-flywheel; rm -rf ~/.docker/machine/certs; local-docker-machine create local-cert-gen; local-docker-machine start local-by-flywheel; local-docker-machine regenerate-certs -f local-by-flywheel; local-docker-machine rm -f local-cert-gen;

and wait for it to complete.

Step 4: Re-open Local

At this point, Local by Flywheel functioned properly.

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: Local by Flywheel

Reader Interactions

Comments

  1. Luke says

    September 18, 2020 at 11:05 am

    Hi Sal! When I try to run the docker alias command it comes up with ‘alias’ is not recognized as an internal or external command, operable program or batch file.

    Any ideas as to what I could try? Thank you so much for your time my friend!

    Reply
    • Sal Ferrarello says

      September 27, 2020 at 11:50 am

      Hi Luke,

      Based on that error message, I suspect you are on a Windows machine. I am on a Mac. I’m sorry about the confusion with this. I’ve added a note to this article to clarify my solution is for a Mac.

      If you figure out how to fix it on Windows, I hope you’ll drop a description or a link here for others with the same problem.

      Reply
      • Giacomo says

        April 22, 2021 at 10:25 am

        Hi Sal and Luke,
        I had the same problem on my Windows machine and solved running the scripts in Git Bash for Windows.
        Thank you Sal for this useful guide! ๐Ÿ™‚

        Reply
  2. Clint says

    October 29, 2020 at 9:18 pm

    Thank you Sal! You saved me a lot of time, MUCH appreciated!

    Reply
  3. Lee says

    November 2, 2020 at 2:33 pm

    Genius!

    Reply
  4. Izzy says

    November 20, 2020 at 4:11 pm

    Thank you so much, that solved the problem ๐Ÿ™‚

    Reply
  5. Tibor says

    November 27, 2020 at 7:40 am

    Sal, thank you so much!! You deserve a medal for this ๐Ÿ™‚

    Reply
  6. Alain Aubry says

    December 11, 2020 at 12:44 pm

    Thank you so much !!!!
    It is working like nice and smooth !!!

    Reply
  7. memphis says

    December 15, 2020 at 12:35 pm

    Please does someone know a workaround for Windows? I’ve been having this issue for a week and seems no solution for us window users

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 ยท Bootstrap4 Genesis on Genesis Framework ยท WordPress ยท Log in