Skip to content

Instantly share code, notes, and snippets.

@jainnidhi
Created September 10, 2018 07:02
Show Gist options
  • Save jainnidhi/71a0ac6880467fc3c72400ae24dbcf9b to your computer and use it in GitHub Desktop.
Save jainnidhi/71a0ac6880467fc3c72400ae24dbcf9b to your computer and use it in GitHub Desktop.
cURL error when accessing SSL Local Site (Local by flywheel)
Open Local by Flywheel
Right-click on the site and go to “Open Site SSH”
Enter /sbin/ip route|awk '/default/ { print $3 }' and copy the IP
Type nano /etc/hosts and add a new line at the bottom for the site you’re trying to access. It should look something like 172.17.0.1 test-1.dev. Use the IP from above.
Test the connection. Please note that the certificate is still self-signed so you’ll need to put it into insecure mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment