diff --git a/src/internal.c b/src/internal.c index 6395f0a23d..3975f2698e 100644 --- a/src/internal.c +++ b/src/internal.c @@ -14836,7 +14836,9 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx, #ifdef HAVE_OCSP #ifdef HAVE_CERTIFICATE_STATUS_REQUEST_V2 addToPendingCAs = 0; - if (ssl->status_request_v2 && TLSX_CSR2_IsMulti(ssl->extensions)) { + if (ssl->options.side == WOLFSSL_CLIENT_END && + ssl->status_request_v2 && + TLSX_CSR2_IsMulti(ssl->extensions)) { ret = TLSX_CSR2_InitRequests(ssl->extensions, args->dCert, 0, ssl->heap); addToPendingCAs = 1;