Added generate key pair function

I think I managed to make a function to create the RSA keys. I hope it works. I used the example from: http://www.codepool.biz/tech-frontier/how-to-use-openssl-generate-rsa-keys-cc.html

Could we try it out?