Function openpgp_card_sequoia::util::make_cert
source · [−]pub fn make_cert<'app>(
open: &mut Open<'app>,
key_sig: PublicKey,
key_dec: Option<PublicKey>,
key_aut: Option<PublicKey>,
pw1: Option<&[u8]>,
prompt: &dyn Fn()
) -> Result<Cert>
Expand description
Create a Cert from the three subkeys on a card. (Calling this multiple times will result in different Certs!)
When pw1 is None, attempt to verify via pinpad.
prompt
notifies the user when a pinpad needs the user pin as input.
FIXME: accept optional metadata for user_id(s)?