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

issue-228: resolved default 1024 bit length on certificate #236

Merged
merged 3 commits into from
Jul 8, 2020
Merged

issue-228: resolved default 1024 bit length on certificate #236

merged 3 commits into from
Jul 8, 2020

Conversation

LouManglass
Copy link
Contributor

Per Optic issue 228 the proxy currently fails on Debian latest. The issue is the certificate: the self-signed CA is 2048 bits, but the site certificate is 1024 (RSA). The CA key length was specified, but not the host certificate, and it appears that the underlying library assumes 1024 if nothing is passed.

I set the key length equal to both with a new variable. It may not be idiomatic, feedback welcome. Tested locally with apidev, ran testssl.sh to document results as well. Made the change in the Node packages on a test Debian latest VM as well (conceit: a single line key set instead of adding the variable and refactoring the CA specification as well) and now the proxy runs and can pass traffic.

I used a variable to make sure that in the future a single key length update will be sufficient for both certificates. NIST says 2048's good through 2030, and it's taken 5-10 years after 1024 was deprecated before software started rejecting it, but I'm feeling optimistic.

@acunniffe acunniffe merged commit be89e37 into opticdev:develop Jul 8, 2020
@trulyronak trulyronak added the bug Something isn't working label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants