Encrypt Large File with public key Via OpenSSL
You can use “rsautl” to encrypt and decrypt small message files but when it comes to large files it’ll shows the error as bellowError:RSA operation error6408:error:0406D06E:rsa routines:RSA_padding_add_PKCS1_type_2:data too large forkey size:./crypto/rsa/rsa_pk1.c:151: So it’s better to use SMIME to perform large file Encryption.Generate private and public key pairs:openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -keyout … Read more