Skip to content

parseOcspResponseDer

Decodes a DER-encoded OCSP response into a structured ParsedOcspResponse.

Returns a typed failure (code: 'malformed') on malformed input. For the throwing form use parseOcspResponseDerOrThrow.

ts
function parseOcspResponseDer(
	der: Uint8Array,
): ParseOcspResponseResult

Parameters

  • der: Uint8Array

Released under the MIT License.