Hi, openssl req -text shows version like:
Certificate Request: Data: Version: 0 (0x0) ... I guess it should be 1. -- gotoyuzo --- t_req.c~ 2005-05-16 19:10:58.000000000 +0900 +++ t_req.c 2005-06-01 06:27:14.000000000 +0900 @@ -117,7 +117,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ l=0; for (i=0; i<ri->version->length; i++) { l<<=8; l+=ri->version->data[i]; } - if(BIO_printf(bp,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg, + if(BIO_printf(bp,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l+1,neg, l) <= 0) goto err; } ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]