Contents
How do I check my OCSP response in Openssl?
Testing OCSP with Openssl
- Step 1: Get the server certificate. First, make a request to get the server certificate.
- Step 2: Get the intermediate certificate. Normally, a CA does not sign a certificate directly.
- Step 3: Get the OCSP responder for server certificate.
- Step 4: Make the OCSP request.
How do you query OCSP?
2 Answers
- Extract server and issuer certificates from somewhere (SSL connection most likely)
- Extract the OCSP server list from the server certificate.
- Generate a OCSP request using the server and issuer certificates.
- Send the request to the OCSP server and get a response back.
- Optionally validate the response.
How do I make an OCSP server?
Procedure
- Create a new key for the CA.
- Create a new key and CSR for the OCSP.
- Generate a client key and CSR.
- Sign the client CSR with the CA key.
- Start the OCSP responder.
- Validate the client certificate.
- Revoke the original client certificate.
- Validate the client certificate after revocation.
What is OCSP response?
OCSP stands for Online Certificate Status Protocol and is used by Certificate Authorities to check the revocation status of an X. 509 digital certificate.
How to test for OCSP validation with OpenSSL?
Testing OCSP with Openssl. 1 Step 1: Get the server certificate. First, make a request to get the server certificate. When using openssl s_client -connect command, this is the 2 Step 2: Get the intermediate certificate. 3 Step 3: Get the OCSP responder for server certificate. 4 Step 4: Make the OCSP request. 5 Handling newer OCSP validators.
How to do OCSP requests using OpenSSL and curl?
It pretty easy, the OpenSSL and CURL manuals make it fairly easy but I thought I would put it all here in a single post for you. First in these examples I used the certificates from the http://www.globalsign.com site, I saved the www certificate to globalsignssl.crt and its issuer to globalsignssl.crt.
What does OCSP stand for in certificate category?
OCSP stands for the Online Certificate Status Protocol and is one way to validate a certificate status. It is an alternative to the CRL, certificate revocation list.
How does a CA sign a certificate in OpenSSL?
Normally, a CA does not sign a certificate directly. They use intermediaries and we need to this make the openssl command work. So, make a request to get all the intermediaries. To view the list of intermediate certs, use the following command. The very first certificate is the server certificate we saved in step 2.