> I use PEM_read_bio_RSAPrivateKey to read a key into a RSA and all return- > values are ok. That's the first and most important test. One other thing you can do is use the "rsa" tool to print out the contents. > But I get a crashes when I use it afterwards. The code you posted isn't what you just described :)