pub trait RemoteKeyPair {
    fn public_key(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn sign(&self, msg: &[u8]) -> Result<Vec<u8>, RcgenError>;
fn algorithm(&self) -> &'static SignatureAlgorithm; }
Expand description

A private key that is not directly accessible, but can be used to sign messages

Trait objects based on this trait can be passed to the KeyPair::from_remote function to generating certificates from a remote and raw private key, for example an HSM.

Required methods

Returns the public key of this key pair in DER format

Signs msg using the selected algorithm

Reveals which algorithm will be used when you call sign()

Implementors