Skip to main content

verify_ocsp_response_signature

Function verify_ocsp_response_signature 

Source
pub fn verify_ocsp_response_signature(response_der: &[u8]) -> Result<()>
Expand description

Verify the signature on a DER-encoded OcspResponse.

Extracts the BasicOcspResponse, re-encodes the tbsResponseData to DER, and verifies the signature using the public key from the first embedded certificate. Returns Ok(()) if the signature is valid.