OK, I found the problem.
It was in the following line in ocsp_request.c module:
sscanf((char *) (pnt+16), "%d", &cont_len );
The problem is that cont_len is defined as size_t and on 64-bit Solaris
architecture it is 64-bit long integer. The following simple fix solves the
problem:
sscanf((char *) (pnt+16), "%ld", &cont_len );
Best regards,
Alex
-----Original Message-----
From: Alex Agranov
Sent: Thursday, October 25, 2007 19:35
To: '[email protected]'
Subject: Problems with OCSPD on Solaris 9 (SPARC)
Hi,
I'm trying to run OCSDP daemon on SUN Solaris 9 (SPARC).
I managed to successfully compile the latest OCSPD version (1.5.1rc1) with SUN
Studio 11 (only with a minor fix in Makefile, to force 64-bit binary mode) and
generated a pair certificates (for OCSPD itself and for CA) and a CRL.
The OCSPD daemon starts nicely:
Oct 25 17:25:49 client238 ocspd[4142]: [ID 482850 daemon.error] OpenCA OCSPD
v1.5.1 - starting.
Oct 25 17:25:49 client238 ocspd[4142]: [ID 898133 daemon.error] variable lookup
failed for OCSPD_default::chroot_dir
However when I send a sample OCSP request to it (openssl ocsp -issuer
certs/ca_cert.pem -cert certs/test2_cert.pem -url http://127.0.0.1:2560) it
produces the following errors and doesn't return any response:
Oct 25 17:25:54 client238 ocspd[4142]: [ID 608501 daemon.error]
DEBUG::NETWORK::recv received 185 (conn = 7)!
Oct 25 17:25:54 client238 ocspd[4142]: [ID 342671 daemon.error] DEBUG::Got
Content Len [0]
Oct 25 17:25:59 client238 ocspd[4142]: [ID 561214 daemon.error]
ERROR::NET::Socket connection timeout
Oct 25 17:25:59 client238 ocspd[4142]: [ID 630661 daemon.error] ERROR::Can not
parse REQ
Does anybody have any idea of what could be the problem?
Thank you in advance,
Alex Agranov
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users