pub fn enroll(
transport: &dyn PkiTransport,
ea_url: &str,
ea_cert: &Certificate,
backend: &mut EcdsaBackend,
its_id: &[u8],
canonical_key: usize,
current_ec: Option<&OwnCertificate>,
attributes: CertificateSubjectAttributes,
now: f64,
retry: Option<&Retry>,
) -> Result<OwnCertificate, EnrolmentError>Expand description
Send an EnrolmentRequestMessage to ea_url and return the issued EC. An
initial request (current_ec None) uses the canonical identifier its_id
and the canonical key canonical_key; a re-keying request uses the EC
identifier and key (clause 6.2.3.2.1). With retry the same message is
repeated while no response is received (ETSI TS 103 601 V2.1.1 clause 5.1).