I am trying to use OpenSSL to generate an RSA keypair and use that to encrypt/decrypt stuff. So far, the generation of the keypair and the encrypting works, but I can't get the decrypting to work at all.
The problem seems to be retrieving the valid key for the decryption function. I do use the private one when I use the public one to encrypt it, and vice versa.
Does anyone has a working example?
The problem seems to be retrieving the valid key for the decryption function. I do use the private one when I use the public one to encrypt it, and vice versa.
Does anyone has a working example?