[ubuntu] openssl- decrypting base64 encoded string with a private key

view story

http://ubuntuforums.org – Hello, I'm trying to decode an IV and a session key that are encrypted with my private key. They are padded using the openssl default, so I can use the following command: (1) openssl rsautl -decrypt -inkey mykey.pem -in binary_file -out output_file.txt However, the session key and the IV are base64 decrypted, so I have to decrypt them using the following command: (2) openssl base64 -d -in input_file.txt -out output_file.txt The output file contains an ASCII string, I belive, and I can't convert it to a binary file, which is required for command (1). I tried converting the base64 str (Hardware)