You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(pkcs11): Make crate::signing_key return a signer that can sign
Instead of returning a rustls::SigningKey, which can't immediately be
used for signing, make tedge_p11_server::signing_key return an object on
which one can call .sign() immediately.
rustls::SigningKey first requires calling `choose_scheme` to obtain a
signer that could be used for signing. So far
`tedge_p11_server::signing_key` was called by only one caller which
wanted a rustls::SigningKey, but now for CSR we want to call `.sign()`.
There were also some changes in the pkcs11 module to remove some
unnecessary structs that in practice were really duplicates - instead of
having a separate `Pkcs11SigningKey` and `Pkcs11Signer` structs, just
have `Pkcs11Signer` impl both `SigningKey` and `Signer`.
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
0 commit comments