I have generated Self-Signed Certificate, Root-CA
Signed by Root-CA
Then, Intermediate-CA
Signed by Root-CA
and Server
Signed by Intermediate-CA
The certificates as given below:
Root-CA -> Intermediate-CA -> Server
Root-CA:
rootca.key
rootca.crt
rootca.crl
Intermediate-CA:
intermediateca.key
intermediateca.crt
intermediateca.crl
Server:
server.key
server.crt
Nginx conf:
server {
listen 443 ssl;
listen [::]:443 SSL;
server_name www.example.com;
ssl_certificate /home/user/confs/server+intermediateca.crt;
ssl_certificate_key /home/user/confs/server.key;
ssl_ocsp on;
ssl_crl /home/user/confs/intermediateca+rootca.crl;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /home/user/confs/intermediateca+rootca.crt;
}
Using this configure, If I revoke server.crt
OCSP Response shows certificate is Revoked and Firefox Browser shows error of revoked certificate but in the Google Chrome and Microsoft Edge browser there is no warning, I am getting access with the revoked certificate, why? What is going wrong? Google Chrome uses CRLsets
, how can I configure in a proper way? Can anyone please help me with this?
Is there any proper way to config that will show error revoked certificate in Google Chrome and Microsoft Edge? How to add revoked certificat in CRLsets?
Using the below command, I am getting an error:
openssl verify -extended_crl -crl_check_all -crl_download -CAfile intermediateca+rootca.pem -verbose server.crt
Output:
Unable to load CRL via CDP
40971A29A97F0000:error:1E80006E:HTTP routines:OSSL_HTTP_REQ_CTX_nbio:missing asn1 encoding:../crypto/http/http_client.c:755:
40971A29A97F0000:error:1E800067:HTTP routines:OSSL_HTTP_REQ_CTX_exchange:error receiving:../crypto/http/http_client.c:874:server=http://www.example.com:80
C = BD, ST = Dhaka, O = Example, CN = www.example.com
error 3 at 0 depth lookup: unable to get certificate CRL
error server.crt: verification failed
What is the above error I am getting? How can I fix that error?
Thank you for your time.