mkcert
mkcert copied to clipboard
Decrease the certificate expiry date
- The certificate expiry date has been modified from 2 years, 3 months to 13 months (397 days). This allows for passing SSL certificate checks that validate the expiry date of the issued server certificate, such as Google Chrome on the Android 11 platform.
Note that this change only effects the issuing of server certificates and not the root certificate itself.
AFAIK, the 397 days requirement is only applied to the system roots, not to user-installed roots. Does this only apply to rooted Android devices where the mkcert root is added to the system roots?
Can confirm that building @i8degrees branch fix my issues with chrome on Android. I no longer have "ERR_CERT_VALIDITY_TOO_LONG".
Was the mkcert root added to the system store by rooting Android?
Yes, mkcert root was added to the trust. Some apps were working fine, some were'nt. I knew why when hitting Chrome issue "ERR_CERT_VALIDITY_TOO_LONG". App who used classic Android APIs were fine, Apps who used webview throwed errors.
@FiloSottile
Yes, the mkcert root cert was added to the system store by rooting my Android device.
I would not quote me on this, but I do want to agree with @Kiblyn11 in that I observed the same error pattern occurring only when the apps utilized the WebView framework.
I apologize for such a late reply.