本文介绍了使用Verisign OCSP Server验证证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试使用Verisign的OCSP服务器来验证其已颁发的证书,例如amazon.com

I'm attempting to use Verisign's OCSP server to verify a certificate that it has issued, for example, amazon.com

我有颁发者证书(很难找到).以及亚马逊0证书.我正在使用openSSL,但似乎无法获得正确的OCSP响应者证书来验证响应.

I have the issuer certificate (which was rather hard to find). As well as the amazon 0 certificate. I'm using openSSL but I don't seem to be able to get the right OCSP responder certificate to verify the response.

openssl ocsp -issuer test4-May2009Oc2010.cer -CAfile veri-ssp-intermediate-ca.crt -nonce -cert amazon0.crt -url http://ocsp.verisign.com

这是响应:

WARNING: no nonce in response
Response Verify Failure
140735084268796:error:27069065:OCSP routines:OCSP_basic_verify:certificate verify error:ocsp_vfy.c:122:Verify error:unable to get local issuer certificate
amazon0.crt: good
    This Update: Jan 19 00:24:56 2011 GMT
    Next Update: Jan 26 00:24:56 2011 GMT

关于OCSP响应者正确的证书实际可能在哪里的任何建议?

Any suggestions as to where the correct certificate for the OCSP responder might actually be?

推荐答案

您不需要OCSP响应者证书.您的OCSP请求成功了,您又得到了答案:证书(amazon0.crt)很好,没有被撤销.行无随机数响应"行是由于以下事实:VeriSign的OCSP响应程序不会发回随机数(由于它必须处理大量证书,VeriSign会对响应进行预签名,因此不能包含随机数-它遵循RFC 5019).您可以使用-no_nonce避免发送随机数.

You don't need the OCSP responder cert. Your OCSP request worked and you got back your answer: the cert (amazon0.crt) is good, not revoked. The line "no nonce in response" is due to the fact that VeriSign's OCSP responder doesn't send back nonces (due to the large volume of certs it must handle, VeriSign pre-signs the responses and therefore cannot include nonces - it adheres to RFC 5019). You can use -no_nonce to avoid sending a nonce.

要摆脱响应验证失败"错误消息,我将中间CA添加到了我的CAfile中(在您的情况下,它称为veri-ssp-intermediate-ca.crt).这是我添加的内容:

To get rid of the "Response Verify Failure" error message, I added the intermediate CA to my CAfile (in your case it's called veri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hHB2QmcQrmy1KotmDojYMyimvFu6M+O0Ro8XhnF15s1sAIjJOUFuNWI4+D6ufRf
-----END CERTIFICATE-----

一旦这样做,我就会得到:

Once I did that, I got:

Response verify OK
0x25F5D12D5E6F0BD4EAF2A2C966F3B4CE: good
        This Update: Jan 19 00:24:56 2011 GMT
        Next Update: Jan 26 00:24:56 2011 GMT

这篇关于使用Verisign OCSP Server验证证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 14:40