Fixed certificate version (counting begins with 0, so 2 means version 3).

This commit is contained in:
Stefan Roehrich 2003-07-13 09:38:32 +00:00
parent ce2a4d9121
commit 80ee75f11e

View File

@ -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 */