-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add API to specify a file path for TLS certificates #421
Comments
I'd be happier if the argument for this new API could be a The reason is that (at least on Linux) a program can receive a file-like object as a file-descriptor from its parent or as a memfd from some peer. In both cases those file-objects have no corresponding file-system entries, thus a path-based API won't work without further workarounds. Additional question: how does the current "pkcs12 vs pem" split fit here? Do you plan to have two separate helpers for those two cases? |
Allowing to provide a A couple options to support both:
If we can easily try both PEM and DER without the user being bother, that's probably best... What do you think? |
As a consumer I prefer handling file opening on my side, but I think we just have a different API taste so I won't keep arguing this further. On the format topic, the pkcs12 has an additional mandatory parameter (the password), and that's the reason why I was asking how you want to handle the two cases. I'm not seeing right now how to make auto-detection and password input work at the same time. |
Oh right, for Just thinking out loud here: following the thoughts in my previous comment, we could either:
|
It would ease usage if users could just specify a path to a certificate instead of requiring it be parsed first, such as:
The text was updated successfully, but these errors were encountered: