OCSP.Request
Module for encoding and decoding OCSP requests.
val pp : t Fmt.t
pp ppf request
pretty prints request
val create :
?certs:Certificate.t list ->
?digest:Digestif.hash' ->
?requestor_name:General_name.b ->
?key:Private_key.t ->
cert_id list ->
(t, [> `Msg of string ]) Stdlib.result
create ~certs ~digest ~requestor_name ~key certids
creates request for given certids
and, if key
is provided, signs it using digest
. requestorName
may be used by responder to distinguish requesters. certs
may be used by responder to check requestor authority.
val validate :
t ->
?allowed_hashes:Digestif.hash' list ->
Public_key.t ->
(unit, [> Validation.signature_error | `No_signature ]) Stdlib.result
validate request key
validates the signature of request
with the pulic key
.
val requestor_name : t -> General_name.b option
requestor_name request
is requestorName from this request
val decode_der : string -> (t, Asn.error) Stdlib.result
decode_der buffer
decodes request in buffer
val encode_der : t -> string
encode_der request
encodes request into buffer