Skip to content

AuthorityInformationAccessInput ​

AuthorityInformationAccessInput ​

Builder input for one Authority Information Access entry.

Parsed AIA locations stay broad (AuthorityInformationAccess), but an 'ocsp' entry must supply a URI location, since RFC 6960 §3.1 defines the id-ad-ocsp location as a URI; directoryName is defined for caIssuers.

ts
type AuthorityInformationAccessInput = {
  readonly method: "ocsp";
  readonly location: {
  readonly type: "uri";
  readonly value: string
}
} | {
  readonly method: "caIssuers" | CustomAuthorityInfoAccessMethod;
  readonly location: GeneralName
}

Released under the MIT License.