mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #412] Mac - Chrome / Not Secure / Certificate is not valid #271
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#271
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 @susanBuck on GitHub (Nov 1, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/412
System
Mac BigSur 11.2.1
Chrome 95.0.4638.69 (Latest version as of this writing)
Issue
I'm seeing the "Not Secure" flag in Chrome and a message that "Certificate is not valid"
When I click the more info icon for the "Certificate is not valid" message, it shows the following with no further indication as to what the problem might be.
Steps I followed to set up
@Mihir-Bhasin commented on GitHub (Nov 10, 2021):
I am getting the same issue in chrome.
@bilalbayasut commented on GitHub (Nov 22, 2021):
I'm getting the same issue in any browser
@bilalbayasut commented on GitHub (Nov 23, 2021):
@susanBuck have you got it working? Any solution for this guys ?
@bilalbayasut commented on GitHub (Nov 23, 2021):
I solve this issue with manually importing the certs into chrome/safari : https://www.keokukschools.org/certificate-safari-chrome/ .
if you got error when importing the certs, ignore it. once you are done with the steps above, restart your mac, and it should work
@andreasvirkus commented on GitHub (Jan 11, 2022):
I had to call
mkcert -installfirst and then callmkcert localhost. This SO answer helped me solve it https://stackoverflow.com/a/57226788/2803743@rpuig commented on GitHub (Apr 4, 2022):
I have a similar issue. When I installed it in windows 10, then i checked the certificate validity dates and it is as if it was creted with wrong dates . 11/11/2009 to 09/11/2019. But i have created it today and today is 04/04/2022 . Anyone knows why this is happening?
@skuppuraj commented on GitHub (Apr 8, 2022):
I am also using macOS Big Sur (11.6.5) and Apache Server with the virtual host.
I am sharing the steps I followed and installed successfully. Check if it works for you.
My local site name:
example.testI created the directory
crtin the document root of the directoryThen I installed the certificate for
example.testsitemkcert example.testThen I configured the virtual host to load the certificate.
@FiloSottile commented on GitHub (Apr 26, 2022):
As mentioned in https://github.com/FiloSottile/mkcert/issues/412#issuecomment-1009666856, it looks like OP is using the root certificate directly, which is not how mkcert works. Instead, you need to generate a certificate for the website, for example in this case by running
mkcert hesweb.loc.