I 'm trying  to encrypt a file with rsautl so:

 openssl rsautl  -in text -inkey cacert.pem -certin -encrypt -out enc

but it displays the following error:

1840:error:0406D06E:rsa routines:RSA_padding_add_PKCS1_type_2:data too
large for key size:rsa_pk1.c:151:

I've tried to change padding but it display the same error.

What is the problem?

Is there a limit for the size of the file to encrypt?

Regards,

Sergio



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to