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

Self signed CA signing a self signed certificate causes a ERR_SSL_SERVER_CERT_BAD_FORMAT #1099

Open
Arlisaha opened this issue Oct 23, 2024 · 0 comments

Comments

@Arlisaha
Copy link

Hi. First of all, thank you for this package it's really great.
This is surely most me missing something than an issue but, here it is. I'm generating a self signed CA (with basicConstraints cA flag to true, issuer as itself and signed with its own private key) that I convert to PEM and write it down to a file before storing it into CA windows store with certmgr. Then, I create another certificate with my previous CA's subject attributes as issuer and sign it with my CA's private key. I convert it to PEM and write it down to a file, do the same with the private key, but when I use them with a server app (apache, npm serve) chrome (and other browsers) give me a ERR_SSL_SERVER_CERT_BAD_FORMAT. And as soon as I remove the line that set issuer's attributes, browsers consider certificate as a risk but I can reach my served files.
I did the same logic with openssl and it worked.
What am I missing ?

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

1 participant