Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate too long #4

Open
jjmmbb opened this issue Oct 11, 2024 · 6 comments
Open

Certificate too long #4

jjmmbb opened this issue Oct 11, 2024 · 6 comments

Comments

@jjmmbb
Copy link

jjmmbb commented Oct 11, 2024

Even after add root ca as a trusted certificate, browsers are not allowing saying about invalid certificate. Searching for a solution I have found that any browser is rejecting SSL certificates with validity above to 397 days. I think a fixing this issue will also need an auto renew script.

https://stackoverflow.com/questions/64597721/neterr-cert-validity-too-long-the-server-certificate-has-a-validity-period-t

@sahilph
Copy link
Owner

sahilph commented Oct 11, 2024

If you add it to your OS's certificate store and restart your browser, this shouldn't be an issue. I have tested it on Windows with Chrome browser.

What is your OS and browser ?

@jjmmbb
Copy link
Author

jjmmbb commented Oct 11, 2024

If you add it to your OS's certificate store and restart your browser, this shouldn't be an issue. I have tested it on Windows with Chrome browser.

What is your OS and browser ?

I have tested on iOS, Windows and MacOS. All them, even importing to root ca trusted, the issue persists. Apparently it's a limitation from new browsers.

@sahilph
Copy link
Owner

sahilph commented Oct 12, 2024

Just to confirm, while trusting the root ca, did you follow the steps from the wiki ?

@jjmmbb
Copy link
Author

jjmmbb commented Oct 13, 2024

Just to confirm, while trusting the root ca, did you follow the steps from the wiki ?

Yes. But I think that is related to devices. Take a look at: https://www.ssls.com/blog/apples-new-ssl-lifetime-limitation-and-what-it-means-for-you/.

@sahilph
Copy link
Owner

sahilph commented Oct 14, 2024

I got a hold of Macbook and tried adding the root CA to the Keychain. After adding, chrome accepted it just fine, no errors. For, Safari I had to take a few additional steps for the first time, henceforth it gave no issues.

Yes. But I think that is related to devices. Take a look at: https://www.ssls.com/blog/apples-new-ssl-lifetime-limitation-and-what-it-means-for-you/.

That is for certificates issued by Public CA not for self signed certificates..

@sahilph
Copy link
Owner

sahilph commented Oct 14, 2024

I am not able to replicate this. Anyways, these are self-signed certificates and they will not work as regular SSL certificates.
Errors will have to be manually bypassed in certain cases..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants