Skip to main content

Module enrolment

Module enrolment 

Source
Expand description

Enrolment of an ITS-S with an EA (ETSI TS 102 941 V2.2.1 clause 6.2.3.2): request an Enrolment Credential (EC). The message construction is in super::messages; this module sends the request and checks the response.

Structs§

EnrolmentError
The enrolment failed: code is the EnrolmentResponseCode returned by the EA (e.g. deniedrequest) or the name of the failed check of the response.

Functions§

enroll
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).
response_code_name
ASN.1 name of an EnrolmentResponseCode (as in the ETSI module).