Typo: v3 is represented by 2.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 21 Oct 2002 00:10:10 +0000 (00:10 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 21 Oct 2002 00:10:10 +0000 (00:10 +0000)
demos/x509/mkcert.c

index 4709e18..8304d30 100644 (file)
@@ -88,7 +88,7 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days)
                }
        rsa=NULL;
 
-       X509_set_version(x,3);
+       X509_set_version(x,2);
        ASN1_INTEGER_set(X509_get_serialNumber(x),serial);
        X509_gmtime_adj(X509_get_notBefore(x),0);
        X509_gmtime_adj(X509_get_notAfter(x),(long)60*60*24*days);