]> git.ipfire.org Git - thirdparty/openvpn.git/commit
OCSP_check.sh: new check logic
authorDavid Sommerseth <dazo@users.sourceforge.net>
Sun, 16 May 2010 17:42:40 +0000 (19:42 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Oct 2010 09:40:36 +0000 (11:40 +0200)
commit233105d2c9d1a2c6911342d8249b19310e94c251
tree031046a0daa777874e9882c7ef4bc57fcff31471
parent6f94529f31cfab709c07d5e012ecc16cc9228d3c
OCSP_check.sh: new check logic

contrib/OCSP_check/OCSP_check.sh:
  I discovered that, quite surprisingly, the exit status of "openssl ocsp"
  is 0 even if the certificate status is "revoked". This means that the
  logic of the script needs to be rewritten so that it parses the output
  returned by the query and explicitly looks for a

  "0x<serial number>: good"

  line, and exit if either the command has a non-zero exit status, or the
  above line is not found.

  Doing that portably without bashisms requires some juggling around, so
  perhaps the code is slightly less clean now, but it does have many
  comments.

Signed-off-by: Davide Brini <dave_br@gmx.com>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
contrib/OCSP_check/OCSP_check.sh