]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix man page and OSCP script: tls_serial_{n} is decimal
authorArne Schwabe <arne@rfc2549.org>
Fri, 28 Mar 2014 10:07:01 +0000 (11:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 25 Apr 2014 18:31:29 +0000 (20:31 +0200)
Commit 7d5e26cbb53 fixed extracting serial but did not change the format,
which always has been decimal. This patch fixes the manpage and
OSCP.sh script to conform with the implementation.
Acked-by: James Yonan <james@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1396001222-5033-1-git-send-email-arne@rfc2549.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8409

Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 959d60789b6f0bd74296600f58f626cfa9738f78)

contrib/OCSP_check/OCSP_check.sh
doc/openvpn.8

index 847be4501110528519ff0271a56e8eb700ff0e43..7e9e1e89b88d8c2de8750ad84e5bee6f1a54d627 100644 (file)
@@ -97,7 +97,7 @@ if [ $check_depth -eq -1 ] || [ $cur_depth -eq $check_depth ]; then
                     "$nonce" \
                     -CAfile "$verify" \
                     -url "$ocsp_url" \
-                    -serial "0x${serial}" 2>/dev/null)
+                    -serial "${serial}" 2>/dev/null)
 
     if [ $? -eq 0 ]; then
       # check that it's good
index 5f3939b2dd44f4cd7bce7bd2752b8d9e1500e235..3886ec268381937ade5db727cc875f2877d5aa89 100644 (file)
@@ -6032,9 +6032,9 @@ where
 is the verification level.  Only set for TLS connections.  Set prior
 to execution of
 .B \-\-tls-verify
-script. This is in the form of a hex string like "37AB46E0", which is
-suitable for doing serial-based OCSP queries (with OpenSSL, you have
-to prepend "0x" to the string). If something goes wrong while reading
+script. This is in the form of a decimal string like "933971680", which is
+suitable for doing serial-based OCSP queries (with OpenSSL, do not
+prepend "0x" to the string) If something goes wrong while reading
 the value from the certificate it will be an empty string, so your
 code should check that.
 See the contrib/OCSP_check/OCSP_check.sh script for an example.