Sign a basic OCSP response with signer and key.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_basic_sign(
    OCSP_BASICRESP* brsp,
    X509* signer,
    EVP_PKEY* key,
    EVP_MD const* dgst,
    stack_st_X509* certs,
    unsigned long flags);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

brsp

Basic response whose tbsResponseData is signed.

signer

Certificate identifying the responder.

key

Private key corresponding to signer.

dgst

Digest algorithm for the signature, or NULL for a default.

certs

Optional certificates to include with the response, or NULL.

flags

OCSP_* flags such as OCSP_NOCERTS or OCSP_RESPID_KEY.

Created with MrDocs