mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #177] Certificate clash between mkcert generated certificates (macOS/Nginx/Dnsmasq) #112
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#112
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 @vicchi on GitHub (Jul 17, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/177
Apologies in advance, as the issue title doesn't begin to describe this ...
Current environment:
macOS - 10.14.5 / Mojave
Chrome - 75.0.3770.100 (Official Build) (64-bit)
Chrome Canary - 77.0.3854.3 (Official Build) canary (64-bit)
Safari - 12.1.1 (14607.2.6.1.1)
Safari Technology Preview - 87 (Safari 13.0, WebKit 14608.1.33.1)
Firefox - 68.0 (64-bit) (Quantum)
Installed via
homebrew(2.1.7):mkcert- 1.3.0nginx- 1.71.1dnsmasq- 2.80I have
dnsmasqconfigured to locally handle all DNS queries for the.testTLD via the following in/usr/local/etc/dnsmasq.confWith a corresponding
/etc/resolver/testcontaining the following:I also have Nginx configured to serve two local domains with SSL enabled via
mkcertcertificates installed in/usr/local/etc/ssl/certsgarygale.testandwww.garygale.test(my personal domain)www.getrentr.test(a company domain I'm working on)My personal domain uses no third party assets, with the exception of Google Analytics with the new tracking code mechanism. All is working well and as expected.
My company domain uses several third party assets, including Google Tag Manager, Lead Forensics and Adobe Fonts.
The company domain's SSL certificate (
www.getrentr.test), when viewed in Chrome, is valid and for the correct domain (www.getrentr.test).When loading the company domain's site, I have
NET::ERR_CERT_COMMON_NAME_INVALIDcertificate errors for Google Tag Manager (https://www.googletagmanager.com/gtm.js?id=[redacted]) and Adobe Fonts (https://p.typekit.net/p.css?[redacted]), but not for Lead Forensics (https://secure.kilo6alga.com/js/[redacted].js).Additionally, when visiting the Google Tag Manager and Adobe Fonts URLs in the browser, I get the
NET::ERR_CERT_COMMON_NAME_INVALIDerror and the SSL certificates for both these domains appear to be using the othermkcertgenerated certificate for my (local) personal domain, rather than the SSL certificates for these actual target domains.p.typekit.netcertificate:googletagmanager.comcertificate:This behaviour, with slightly different error messages due to browser differences, is repeated on Chrome Canary, Firefox, Safari and Safari Technology Preview.
I can't for the life of me figure out how this is happening; more specifically how the
mkcertcertificate for one domain is being used in place of some, but not all, third party assets.I also freely admit that there's probably some unknown interaction between all the moving parts in this but despite many hours trying to narrow this down and work out what is going on, I have drawn a blank.
So basically ... help?
@vicchi commented on GitHub (Jul 17, 2019):
Update: After some more digging around on our network, this appears to be a side effect of running the Pi Hole ad blocker. Disabling this resolves the problem. So I'll close this issue now.
Also @FiloSottile thank you for an awesome and insanely useful piece of code!