我正在尝试使用Verisign的OCSP服务器来验证它已颁发的证书,例如amazon.com
我有发行人证书(很难找到).以及亚马逊0证书.我正在使用openSSL,但我似乎无法获得正确的OCSP响应器证书来验证响应.
openssl ocsp -issuer test4-May2009Oc2010.cer -CAfile veri-ssp-intermediate-ca.crt -nonce -cert amazon0.crt -url http://ocsp.verisign.com
Run Code Online (Sandbox Code Playgroud)
这是回应:
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
Run Code Online (Sandbox Code Playgroud)
有关OCSP响应者的正确证书可能在何处的任何建议?
我正在使用tcp套接字使用JDK 1.3(BD-J平台).
我似乎在客户端收到一些错误.如果我已完成写入并关闭较低的套接字输出流,我似乎尝试从服务器端读取异常(大多数消息如果没有关闭则通过),但是当它关闭时我遇到了麻烦.
尝试使用服务器进行调试,即使套接字关闭,我也不应该读取客户端发送的所有内容吗?只需在服务器端使用低套接字输入流.如果我正常运行它得到大多数消息,尝试在调试器中运行服务器我得到1消息然后一个Socket异常连接重置.
这是客户端上的部分代码,它如何发送消息,然后在完成写入时关闭,等待所有输入完成然后完全关闭套接字.
http://pastie.org/private/cwc5uijl1x2ndwjwsun4lg
真的很沮丧,我找不到问题
我有一段代码,我怀疑它作为定义的递归实现.我的理解是代码必须调用自身,完全相同的功能.我还质疑是否以这种方式编写代码会增加额外的开销,这可以通过使用递归来看到.你的想法是什么?
class dhObject
{
public:
dhObject** children;
int numChildren;
GLdouble linkLength; //ai
GLdouble theta; //angle of rot about the z axis
GLdouble twist; //about the x axis
GLdouble displacement; // displacement from the end point of prev along z
GLdouble thetaMax;
GLdouble thetaMin;
GLdouble thetaInc;
GLdouble direction;
dhObject(ifstream &fin)
{
fin >> numChildren >> linkLength >> theta >> twist >> displacement >> thetaMax >> thetaMin;
//std::cout << numChildren << std::endl;
direction = 1;
thetaInc = 1.0;
if (numChildren > 0) …Run Code Online (Sandbox Code Playgroud)