mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #549] Mkcert Certificates causes flutter cli tools to throw tls error #325
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @e-reifer on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/549
Environment
mkcert -version): v.1.4.4What you did
What went wrong
Mkcerts prohibits the flutter cli to be able to get packages as the terminal browser uses the system-wide certitifacate generated by mkcert. I have not found a way to disable this.
flutter doctorshows this:[!] Network resources ✗ A cryptographic error occurred while checking "https://pub.dev/": Handshake error in client You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.flutter pub getshows TLS error:Got TLS error trying to find package args at https://pub.devAny help is appreciated
@e-reifer commented on GitHub (Sep 4, 2023):
Could resolve it myself with the help of chatgpt. Mkcert was just a side effect. The real cause was me using dnsmasq service the unintentionally redirected all "pub.dev" results to localhost while using mkcert's certificate.
@coskuncay commented on GitHub (Feb 1, 2024):
hi @e-reifer , so how did you solve it ?
@e-reifer commented on GitHub (Feb 1, 2024):
I've checked the dnsmasq.conf file
/opt/homebrew/etc/dnsmasq.confand deleted a line similar toaddress=/.dev/127.0.0.1