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

fix weak self-signed certificates #68

Merged
merged 1 commit into from
Feb 5, 2021
Merged

Conversation

fippo
Copy link
Contributor

@fippo fippo commented Feb 4, 2021

increases the size of the self-signed key/certificate to 2048 bytes.
Recent versions of OpenSSL refuse to use certificates with 1024 byte
RSA signatures.

I ran into this after upgrading ubuntu and SSL_CTX_use_certificate returning an error 1.
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_security_level.html returns 2 on those systems, forbidding 1024 byte keys. The overall security of self-signed certificates is not great but this helper method is convenient :-)

increases the size of the self-signed key/certificate to 2048 bytes.
Recent versions of OpenSSL refuse to use certificates with 1024 byte
RSA signatures.
@sreimers sreimers merged commit 4aeed09 into baresip:master Feb 5, 2021
@sreimers sreimers added the bug Something isn't working label Apr 9, 2021
@sreimers sreimers added this to the v2.0.0 milestone Apr 9, 2021
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.

2 participants