-
Notifications
You must be signed in to change notification settings - Fork 113
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
cert::KeyPairAlgorithm
is not public
#309
Comments
rustls-cert-gen is not intended as a libary interface. Are there issues with using rcgen? |
I figured that it was published as a lib, that I could use it as such :) I'm sure I could copy and paste your code from that project and use rcgen and that would work fine. |
I'd rather add high-level API to rcgen where it is currently too clunky than support library API for the CLI crate. |
I mentioned it in the other issue, but https://github.com/OneVariable/rustls-self-signed-demo is what I came up with. I think having something like |
If you'd be willing to submit a PR that moves some version of the |
When using
rustls_cert_gen
as a library, theCertificateBuilder::signature_algorithm
function takesKeyPairAlgorithm
as an argument, however thecert
module is private, andcert::KeyPairAlgorithm
is not exported. This means thatCertificateBuilder::signature_algorithm
cannot be used (or only used withDefault::default()
, the same as not using it).Happy to open a PR to expose this (there might be other params missing too), just wanted to check if it was intentional.
The text was updated successfully, but these errors were encountered: