[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Generate OpenSSL CSR in Squeeze



Hello,

We have an RSA key with no encryption password, and we need to generate a CSR using this key. However, when I try to generate a CSR, I get an error:

# openssl req -new -key server.key -out server.csr
Enter pass phrase for server.key:
32208:error:28069065:lib(40):UI_set_result:result too small:ui_lib.c:850:You must type in 4 to 8191 characters

And if I put in a random password, I get this:

unable to load Private Key
32208:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:330: 32208:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:97: 32208:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:123: 32208:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:125:

I am using the Debian Squeeze (amd64) and the stock OpenSSL package (openssl_0.9.8o-4squeeze1_amd64). We have generated CSRs with this key in the past, so I know this used to work. Any help would be greatly appreciated.

Thanks!

    - Dave

--

Dave Parker
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177


Reply to: