-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Simplified SSL option value for cacerts
?
#8598
Comments
A further enhancement is probably not to turn |
Thank you for you input. We definitely will consider doing changes in this direction. We also have our own thoughts of a "caching mechanism" for cert provided as DER directly. Can not give you any estimates of when it can be prioritized. |
@IngelaAndin thank you. Another point I added was the support for root CA certificates renewal (without having to restart). |
The result of |
Well I guess we have three things, if certs are provided as DER in options we want to create a cache. In public_key:get_cacerts case we want the cache to be refreshable as the PEM cache is. We also want #8741 so that public_key:get_cacerts will not be printed by SASL progress reports. |
@zmstone As I said #8741 should fix you log problem, cacerts are not not printed in error reports already today so it is just the progress reports. For certs provided by cacerts that is not public_key:cacerts_get() but raw DER is the caching improvement I was thinking about. For PEM-files we have a really not disruptive cache refresh mechanism, but for system defaults as @dgud mentions is implemented differently. And maybe we need to think about if this should be handled by user application by calling |
It's often more than SASL progress which may print the certs. |
When one wants to use system default trusted certs to verify peer.
There seems to be only two options:
cacertfile
option{cacerts, public_key:cacerts_get()}
I'd like to have option 2 simplified as
{cacerts, system_defaults}
or similar so OTP'sssl
lib can callpublic_key:cacerts_get()
for me.This is necessary because
public_key:cacerts_get()
is often a quite bloated term.And SSL options are usually passed around and stored in various process states.
When process crashes or when exceptions with SSL options in the context are caught and dumped to logs,
the options are printed to the logs which in turn bloats the logs quite much.
The text was updated successfully, but these errors were encountered: