Module protocol

Module protocol 

Source
Expand description

NDNCERT wire protocol types.

All messages are JSON-serialized and carried in NDN packet fields:

  • CertRequest / ChallengeRequest in ApplicationParameters
  • CaProfile / NewResponse / ChallengeResponse in Content

§NDNCERT 0.3 TLV type assignments

These constants are reserved for the Phase 1C TLV wire-format migration:

ca-prefix         0x81   ca-info           0x83   parameter-key     0x85
parameter-value   0x87   ca-certificate    0x89   max-validity      0x8B
probe-response    0x8D   max-suffix-length 0x8F   ecdh-pub          0x91
cert-request      0x93   salt              0x95   request-id        0x97
challenge         0x99   status            0x9B   iv                0x9D
encrypted-payload 0x9F   selected-challenge 0xA1  challenge-status  0xA3
remaining-tries   0xA5   remaining-time    0xA7   issued-cert-name  0xA9
error-code        0xAB   error-info        0xAD   auth-tag          0xAF

Structs§

CaProfile
CA information returned by /<ca>/CA/INFO.
CertRequest
Certificate signing request submitted to /<ca-prefix>/CA/NEW.
ChallengeRequest
Challenge request submitted to /<ca-prefix>/CA/CHALLENGE/<request-id>.
ChallengeResponse
Response to a CHALLENGE request.
NewResponse
Response to a NEW request — returns a request ID and available challenges.
ProbeResponse
Response to a PROBE request (/<ca-prefix>/CA/PROBE).
RevokeRequest
Request body for /<ca-prefix>/CA/REVOKE.
RevokeResponse
Response to a REVOKE request.

Enums§

ChallengeStatus
Challenge/request status per NDNCERT 0.3.
ErrorCode
Numeric error codes per NDNCERT 0.3 §3.3.
RevokeStatus
Revocation outcome.