When I add the following line after line 2873 in the client.c file I get the error "wolfSSL_connect error -407, Invalid OCSP Status Error":
wolfSSL_CTX_SetOCSP_Cb(ctx, NULL, NULL, NULL);
I have three bash windows open, each running one of the following commands:
openssl ocsp -port 22221 -index certs/ocsp/index-intermediate1-ca-issued-certs.txt -rsigner certs/ocsp/ocsp-responder-cert.pem -rkey certs/ocsp/ocsp-responder-key.pem -CA certs/ocsp/intermediate1-ca-cert.pem
examples/server/server.exe -c certs/ocsp/server1-cert.pem -k certs/ocsp/server1-key.pem -v 4
(and lastly)
examples/client/client.exe -A certs/ocsp/root-ca-cert.pem -v 4 -W 1
I've attached a couple of pcapng files from Wireshark, one with the above line (failed) and one without.
The upshot is that the above line prevents the client from requesting the response from the OCSP Responder. I would expect the stapled response to be provided by the server, like happens when I use an openSSL server instead of a wolfSSL server, using the following:
openssl s_server -status -port 11111 -cert certs/ocsp/server1-cert.pem -key certs/ocsp/server1-key.pem -CAfile certs/ocsp/intermediate1-ca-cert.pem
I will provide a pcapng file for this session, also. (I am unable to attach more that one file to this post.)
Post's attachmentsOCSP Stapling.pcapng 20.13 kb, 2 downloads since 2020-12-03
You don't have the permssions to download the attachments of this post.