buildOcspRequest method
Uint8List
buildOcspRequest({
- required X509Certificate certificate,
- required X509Certificate issuerCertificate,
- String hashAlgorithm = 'SHA1',
- int? nonceLength,
inherited
Builds a DER-encoded OCSP request for certificate/issuerCertificate.
hashAlgorithm defaults to SHA1 to match OpenSSL CLI behavior.
Set nonceLength > 0 to include a nonce.
Implementation
Uint8List buildOcspRequest({
required X509Certificate certificate,
required X509Certificate issuerCertificate,
String hashAlgorithm = 'SHA1',
int? nonceLength,
}) {
final client = OcspClient(this as OpenSSL);
return client.buildRequestDer(
certificate: certificate.handle,
issuerCertificate: issuerCertificate.handle,
hashAlgorithm: hashAlgorithm,
nonceLength: nonceLength,
);
}