error: ASN1_mbstring_copy:string too long:a_mbstr.c:154:maxsize=2 _only_ when using config file and prompt off

2010-04-13 Thread Alex Lam
Hi all,

For some strange reasons, when I disable prompt in the cnf file, I run into
the  error: ASN1_mbstring_copy:string too
long:a_mbstr.c:154:maxsize=2 error.
Digging around on the net showed that my counter code is longer that 2
characters, which is not true. The following is my country name.

[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = US
countryName_min= 2
countryName_max= 2

However, if I enable prompt, and just hit ENTER for the same default value,
everything went fine.

any idea what is going wrong here?

thanks,
alex.


Re: error: ASN1_mbstring_copy:string too long:a_mbstr.c:154:maxsize=2 _only_ when using config file and prompt off

2010-04-13 Thread Christian Hohnstaedt
Hi,

On Tue, Apr 13, 2010 at 12:13:49AM -0700, Alex Lam wrote:
 Hi all,
 
 For some strange reasons, when I disable prompt in the cnf file, I run into
 the  error: ASN1_mbstring_copy:string too
 long:a_mbstr.c:154:maxsize=2 error.
 Digging around on the net showed that my counter code is longer that 2
 characters, which is not true. The following is my country name.
 
 [ req_distinguished_name ]
 countryName = Country Name (2 letter code)
 countryName_default = US
 countryName_min= 2
 countryName_max= 2
 
 However, if I enable prompt, and just hit ENTER for the same default value,
 everything went fine.
 
 any idea what is going wrong here?

Try:
countryName_value   = US


Christian
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org