pub trait KeystoreSenderExt {
fn get_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>;
fn get_or_create_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>;
}
Expand description
Some legacy APIs to make refactor easier.
Required methods
fn get_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>
fn get_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>
If we have a TLS cert in lair - return the first one Errors if no certs in lair
fn get_or_create_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>
fn get_or_create_first_tls_cert(
&self
) -> KeystoreApiFuture<(CertDigest, Cert, CertPrivKey)>
If we have a TLS cert in lair - return the first one otherwise, generate a TLS cert and return it