pub fn make_cert<'app>(
    open: &mut Open<'app>,
    key_sig: PublicKey,
    key_dec: Option<PublicKey>,
    key_aut: Option<PublicKey>,
    pw1: Option<&[u8]>,
    pinpad_prompt: &dyn Fn(),
    touch_prompt: &(dyn Fn() + Send + Sync)
) -> 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)?