You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Certificate not standards compliant" on macOS Catalina, iOS 13 #174
Certificates generated after July 1st, 2019 by versions of mkcert prior to v1.4.0 will not work on macOS 10.15 Catalina and iOS 13. Please update mkcert and regenerate the affected certificates.
The root CA is unaffected and there is no need to rerun mkcert -install.
Under MacOS Catalina Public Beta 2, after installing mkcert via Homebrew and running the root certificate installer, my mkcert generated certificates are rejected in Safari with the message 'Certificate is not standards compliant' and in Chrome with 'ERR_CERT_REVOKED'.
Reacted by Ganapati V S, Nick Sweeting, Andrei Iugai, Stepan Koltsov, Morgan Benton, Ian Dunn, Travis Fischer and Dysonabv
Additionally, all TLS server certificates issued after July 1, 2019 (as indicated in the NotBefore field of the certificate) must follow these guidelines:
TLS server certificates must have a validity period of 825 days or fewer (as expressed in the NotBefore and NotAfter fields of the certificate).
It's surprising they would enforce it on private roots, honestly.
I am mildly tempted to fake the notBefore, but one way or another I need to fix it soon, or a bunch of certificates will be generated that will stop working after updating to Catalina.
BTW, if you try Chrome Canary it should give you a better error message.
Reacted by oberlon, avinchakov, Robert Ross, Matthew Buckett, Alex Berber, penkovski, João Alves, Ramesh Maharjan, matteocng, Travis Fischer and 6 more
Reacted by Roman Nesterov
Reacted by Randy Fay, Ganapati V S, avinchakov, cybersn-tdeyarmin and tsukumi
Reacted by Mikkel Malmberg and Zmicier Yarashevich
I opted to backdate the notBefore until the ACME server is implemented. Once ACME is an option, automation should reduce the need for long lifespans.
@selfagency Please test the latest master (brew install mkcert --HEAD), and let me know. If it works, I'll push a new version ASAP so we can minimize the number of doomed certificates that will get issued.
I'm having a same issue with Chrome on MacOS Catalina public beta 2! Interestingly certificate works on Firefox developer edition 🤷♂️
Tried running brew install mkcert --HEAD, but no luck!
On Jul 31, 2019, 3:27 PM -0400, Randy Fay ***@***.***>, wrote:
Feeling anxious to get this into a release. I'll think about how I can test, maybe Parallels macOS upgraded to Catalina.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Building mkcert master latest commit 2d05f3b on Catalina (although it doesn't matter where it's built). Clean machine, no other mkcert has ever been installed there.
mkcert junker99
openssl x509 -in junker99.pem -text -noout and note the expiration date is still 2029.
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
cb:62:fc:d8:82:6a:18:dd:5f:b8:d3:12:1f:48:5d:5b
Signature Algorithm: sha256WithRSAEncryption
Issuer: O=mkcert development CA, OU=parallels@parallelss-Mac.local, CN=mkcert parallels@parallelss-Mac.local
Validity
Not Before: Jun 1 00:00:00 2019 GMT
Not After : Aug 14 01:25:38 2029 GMT
Subject: O=mkcert development certificate, OU=parallels@parallelss-Mac.local
I will try to do some debugging to see why the code that looks so good is not getting us to a shorter expiration.
Looks like it's a new limit on maximum lifespan. See https://support.apple.com/en-us/HT210176.
[...]TLS server certificates must have a validity period of "[max]" 825 days [...]
Thx Filo. After spending hours to figure out why my self signed cert is not acceptable only on chrome I read your post. Get a new cert with only 2 years and everything works.
Edit: Before my Cert was valid for 3 years and Chrome always showed "NET::ERR_CERT_REVOKED"
changed the title [-]"Certificate is not standards compliant" on macOS Catalina[/-][+]"Certificate is not standards compliant" on macOS Catalina and iOS 13[/+]on Sep 22, 2019
changed the title [-]"Certificate is not standards compliant" on macOS Catalina and iOS 13[/-][+]"Certificate not standards compliant" on macOS Catalina and iOS 13[/+]on Sep 22, 2019
changed the title [-]"Certificate not standards compliant" on macOS Catalina and iOS 13[/-][+]"Certificate not standards compliant" on macOS Catalina, iOS 13[/+]on Sep 22, 2019
If I regenerate certs from scratch, both the root and the leaf have a notBefore of today, and I'm getting NET::ERR_CERT_REVOKED in Chrome.
This is with:
mkcert 1.4.0
Chrome 77.0.3865.120
macOS 10.15.0
Reinstalling a few times using Homebrew didn't work. I ended up compiling from scratch. Is it possible the binary 1.4.0 Homebrew distribution has the old version of the code?
I'm still getting this issue, but it still seems to be an issue for me on the latest version. I have built from the source, but my certs still generate with a expiry date of 12 May 2030.
@arimolzer I believe the screenshot here is of the Root Certificate Authority, and not the end-entity/leaf certificates, where this issue becomes an issue.
I.e. if you run:
mkcert localhost 127.0.0.1
openssl x509 -in localhost+1-key.pem -noout -startdate
# -startdate is a libressl (macOS) flag
You should see that this end-entity/leaf certificate, which you would use in your application, are properly back dated.
So far I haven't seen an issue with having Root Certificate Authorities create certificates with start dates before its own creation date; however, I'm sure it's only a matter of time before Apple's security theater becomes more problematic.
Activity
FiloSottile commentedon Jul 6, 2019
Looks like it's a new limit on maximum lifespan. See https://support.apple.com/en-us/HT210176.
It's surprising they would enforce it on private roots, honestly.
I am mildly tempted to fake the notBefore, but one way or another I need to fix it soon, or a bunch of certificates will be generated that will stop working after updating to Catalina.
BTW, if you try Chrome Canary it should give you a better error message.
[-]"Certificate is not standards compliant"[/-][+]"Certificate is not standards compliant" on macOS Catalina[/+]Backdate notBefore to support macOS Catalina
FiloSottile commentedon Jul 6, 2019
I opted to backdate the notBefore until the ACME server is implemented. Once ACME is an option, automation should reduce the need for long lifespans.
@selfagency Please test the latest master (
brew install mkcert --HEAD), and let me know. If it works, I'll push a new version ASAP so we can minimize the number of doomed certificates that will get issued.jarretmoses commentedon Jul 10, 2019
I've recently had this issue as well. Tried the
HEADinstall but still get rejected certs. (Just so you know @FiloSottile)ganapativs commentedon Jul 11, 2019
I'm having a same issue with Chrome on MacOS Catalina public beta 2! Interestingly certificate works on Firefox developer edition 🤷♂️
Tried running
brew install mkcert --HEAD, but no luck!➜ brew --version Homebrew 2.1.7 Homebrew/homebrew-core (git revision 276f; last commit 2019-07-10)Why Apple is limiting certs validity to 825(Magic number?) days though? 🤔
selfagency commentedon Jul 11, 2019
Same deal, unfortunately, with the
headversion.adamdecaf commentedon Jul 11, 2019
825 comes from the CAB forum bylaws for certificates. All of the major products and CA's follow them.
ganapativs commentedon Jul 12, 2019
Manually compiling from current master using go on MacOS Catalina public beta 2 works on chrome 🎉
RgtArRr commentedon Jul 12, 2019
That works for me on macOS Catalina too.
rfay commentedon Jul 31, 2019
Feeling anxious to get this into a release. I'll think about how I can test, maybe Parallels macOS upgraded to Catalina.
selfagency commentedon Jul 31, 2019
rfay commentedon Aug 7, 2019
Sadly, I'm unable to verify that latest works on Catalina. I've tried a number of things and have failed at every step.
I built mkcert with
go installand then have done everything I could think of to make sure no existing remnants still exist:go installbrew unlink mkcert&& cp ~/go/bin/mkcert /usr/local/bin`mkcert -uninstallrm -rf $(mkcert -CAROOT)No matter what I do I end up with a cert that has a 2029 expiration date and is thus "revoked".
I assume there's some cleanup step I've missed. I certainly see the important commit df15e0c there.
Suggestions on what I could do differently to verify this?
rfay commentedon Aug 14, 2019
I confirm this situation with a better test.
mkcert junker99openssl x509 -in junker99.pem -text -nooutand note the expiration date is still 2029.I will try to do some debugging to see why the code that looks so good is not getting us to a shorter expiration.
6 remaining items
back-2-95 commentedon Aug 17, 2019
How can I install v1.4.0 before it comes through Brew? Is there some magic command or do I need to take the
build from sourceroad?FiloSottile commentedon Aug 17, 2019
You can get binaries from the release page. https://github.com/FiloSottile/mkcert/releases/tag/v1.4.0
AlekSi commentedon Aug 22, 2019
Homebrew has 1.4.0 now.
oberlon commentedon Sep 12, 2019
Thx Filo. After spending hours to figure out why my self signed cert is not acceptable only on chrome I read your post. Get a new cert with only 2 years and everything works.
Edit: Before my Cert was valid for 3 years and Chrome always showed "NET::ERR_CERT_REVOKED"
[-]"Certificate is not standards compliant" on macOS Catalina[/-][+]"Certificate is not standards compliant" on macOS Catalina and iOS 13[/+][-]"Certificate is not standards compliant" on macOS Catalina and iOS 13[/-][+]"Certificate not standards compliant" on macOS Catalina and iOS 13[/+][-]"Certificate not standards compliant" on macOS Catalina and iOS 13[/-][+]"Certificate not standards compliant" on macOS Catalina, iOS 13[/+]lgarron commentedon Oct 14, 2019
I'm still having issues with this. :-(
If I regenerate certs from scratch, both the root and the leaf have a notBefore of today, and I'm getting
NET::ERR_CERT_REVOKEDin Chrome.This is with:
mkcert 1.4.0
Chrome 77.0.3865.120
macOS 10.15.0
lgarron commentedon Oct 14, 2019
Reinstalling a few times using Homebrew didn't work. I ended up compiling from scratch. Is it possible the binary 1.4.0 Homebrew distribution has the old version of the code?
FiloSottile commentedon Oct 14, 2019
AFAIK the Homebrew distribution is the right version. Maybe you had an old version built from source higher in your $PATH?
If you can reproduce this from scratch please open a new issue so we don't lose track of it.
arimolzer commentedon May 12, 2020
I'm still getting this issue, but it still seems to be an issue for me on the latest version. I have built from the source, but my certs still generate with a expiry date of 12 May 2030.
macOS: 10.15.4
mkcert: v1.4.1-dev
flyinprogrammer commentedon Jun 5, 2020
@arimolzer I believe the screenshot here is of the Root Certificate Authority, and not the end-entity/leaf certificates, where this issue becomes an issue.
I.e. if you run:
You should see that this end-entity/leaf certificate, which you would use in your application, are properly back dated.
So far I haven't seen an issue with having Root Certificate Authorities create certificates with start dates before its own creation date; however, I'm sure it's only a matter of time before Apple's security theater becomes more problematic.
Max. Validity; Whitespaces