Skip to content

Instantly share code, notes, and snippets.

@abdumu
Last active January 8, 2020 09:18
Show Gist options
  • Save abdumu/c1cfc94386af2303f455cacc1606a9a7 to your computer and use it in GitHub Desktop.
Save abdumu/c1cfc94386af2303f455cacc1606a9a7 to your computer and use it in GitHub Desktop.
"This connection is not private" + "Valet" + "iOS Simulator"
-1- edit ~/.composer/vendor/laravel/valet/cli/stubs/openssl.conf
Change:
basicConstraints = CA:FALSE
To:
basicConstraints = CA:TRUE,pathlen:0
save file.
-2- go to your website folder, run: valet secure
-3-
(old versions) drag ~/.valet/Certificates/[website.domain].crt to iOS simulator to add it there.
(new versions) drag LaravelValetCASelfSigned.pem to iOS simulator to add it there.
-4- From iOS simulator,
- go to Settings->about->Certificates Trust Settings
- Enable Full Trust for your website cert.
Enjoy
@abdumu
Copy link
Author

abdumu commented Oct 24, 2019

thanks Mr. @if4lcon

@alirezas
Copy link

alirezas commented Jan 8, 2020

Somethings LaravelValetCASelfSigned.pem maybe located in ~/.config/valet/CA

and in iOS 13 you need to install profile first from Setting -> General -> Profile to see Certificate in Settings -> General -> About -> Certificate Trust Settings

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