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 with only 'Digital Signature' Key Usage not accepted #538

Open
bashtheshell opened this issue Oct 5, 2023 · 0 comments
Open

Comments

@bashtheshell
Copy link

This issue is related to #436 where I initially commented. I was asked to create a new issue instead.

I tried using the certificates from Let's Encrypt so that I can ship encrypted HEPs to Homer, but with hepgen.js (which is an incredible test tool by the way!), I keep getting the following error: Error: key usage does not include certificate signing. openssl s_client reported 32 (key usage does not include certificate signing). I've tried different permutations of cert.pem, chain.pem, and fullchain.pem. None of them worked as I have expected the latter to be the most appropriate choice.

I was going crazy for a moment as I read that some certs won't be supported in some server configurations until I was able to confirm the feasibility with the help of ChatGPT. I created a proof-of-concept using minimal Golang code to run a non-HTTP server, which make use of Let's Encrypt certs, that receives plaintext (the message would be encrypted while in motion, of course) from a client using TLS.

I simply do not understand why we must use a private CA or why we must succumb to disabling TLS verification on the client's side. Is it a typical configuration to use a private CA for heplify-server?

If I've overlooked a solution that's been under my nose, then please point me in the right direction (thanks in advance). I've been on this issue for weeks now, but I'm out of time trying to put together a quick solution, and I've to move on to my next tasks.

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