Practical Approach: Use ocsp Crate
The ocsp crate (0.2.x) provides higher-level OCSP types built on der:
ocsp = "0.2"
use ocsp::response::{
BasicOcspResponse, OcspResponse, OcspResponseStatus,
ResponderId, SingleResponse, CertStatus,
};
let single = SingleResponse::new(
cert_id,
CertStatus::Good,
this_update,
Some(next_update),
)?;
If the ocsp crate API is too unstable: hand-construct the DER using der.
Both are learning opportunities. Pick one and document why.