Hi,

I see that the OCSPD don't take the status from the databases of OpenCA.
So I write a small script which do this job (so we must not implement
the code for the different db-drivers in c/c++). It is an extract of the
RAServer and actually quite simple. I attached the code.

You can call the function via:

./get_status CERTIFICATE "01"

The output is
  -1 to -7 on error
  VALID, EXPIRED, REVOKED, SUSPENDED, ARCHIVIED on success

The return codes are 
  0 on success
  -1 to -7 on failure

Another problem I detected is the status ARCHIVIED. Should we fix this
(ARCHIVED)?

Michael
-- 
-------------------------------------------------------------------
Michael Bell                   Email (private): [EMAIL PROTECTED]
Rechenzentrum - Datacenter     Email:  [EMAIL PROTECTED]
Humboldt-University of Berlin  Tel.: +49 (0)30-2093 2482
Unter den Linden 6             Fax:  +49 (0)30-2093 2959
10099 Berlin
Germany                                     [OpenCA Core Developer]

http://openca.sourceforge.net

db_status.tgz

Reply via email to