Feature #5113
Updated by Junxiao Shi over 2 years ago
Since #5112, KeyLocator can contain either a key name or a certificate name. When the validator operates in a network environment that uses a distinct certificate chain than what appears in the KeyLocator, it may be necessary to override parts of the certificate name before fetching certificate. This feature is to introduce an "issuer id override" option in certificate fetcher, configurable through ValidatorConfig. After specifying this option to be `<issuer-id>`: * For KeyLocator name that is a key name `/<subject>/KEY/<key-id>`, certificate retrieval Interest should be `/<subject>/KEY/<key-id>/<issuer-id>` CanBePrefix=true. * For KeyLocator name that is a certificate name with a different issuer id `/<subject>/KEY/<key-id>/<issuer-other>/<version>`, `/<subject>/KEY/<key-id>/<issuer-other>`, certificate retrieval Interest should be `/<subject>/KEY/<key-id>/<issuer-id>` CanBePrefix=true. * For KeyLocator name that is a certificate name with the same issuer id `/<subject>/KEY/<key-id>/<issuer-id>/<version>`, certificate retrieval Interest should be `/<subject>/KEY/<key-id>/<issuer-id>/<version>` CanBePrefix=false (i.e. unchanged). CanBePrefix=false.