From: Stefan Roehrich Date: Sun, 13 Jul 2003 09:38:32 +0000 (+0000) Subject: Fixed certificate version (counting begins with 0, so 2 means version 3). X-Git-Tag: BEFORE_ARG_INFO~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80ee75f11ebef0a9c067bc6132c59ed32ad04129;p=php Fixed certificate version (counting begins with 0, so 2 means version 3). --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 366d418da5..7014886fee 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1532,7 +1532,7 @@ PHP_FUNCTION(openssl_csr_sign) goto cleanup; } /* Version 3 cert */ - if (!X509_set_version(new_cert, 3)) + if (!X509_set_version(new_cert, 2)) goto cleanup; /* TODO: Allow specifying */