-
Notifications
You must be signed in to change notification settings - Fork 353
prefer system crypto policy #215
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
Conversation
To summarize, it is easier for a sysadmin to alter a configuration than to change an hardcoded value in sources ;) |
More explanation about why this change is needed |
if (conf->ciphers) { /* else use system crypto policy */ | ||
if (SSL_CTX_set_cipher_list(ctx, conf->ciphers) == 0) { | ||
nxt_openssl_log_error(task, NXT_LOG_ALERT, | ||
"SSL_CTX_set_cipher_list(\"%s\") failed", | ||
ciphers); | ||
goto fail; | ||
conf->ciphers); | ||
goto fail; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Remi!
Please detail in the commit message the mechanism by which system crypto policy is being used in the "else" case. Is it by not calling SSL_CTX_set_cipher_list()
, or how?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't call SSL_CTX_set_cipher_list
, then you use system default. The goal of this PR
If this PR is still necessary, please rebase it against the master branch. |
41243ec
to
d8b70ea
Compare
Rebased |
Looks good to me. Please include something like Thanks! |
BTW, it would also be nice if you add a changelog line into |
If you don't call SSL_CTX_set_cipher_list, then you use system default. Signed-off-by: Remi Collet <remi@remirepo.net>
d8b70ea
to
5125605
Compare
Great. I'll push it in a moment. Thanks! |
Merged. |
Mandatory for official repository
See
Perhaps better to have a configure option for this (like the --with-system-ciphers of PHP°