RSA in openSSL

Hello again,

I've been looking on google on how to use openSSL's RSA functions but I can't seem to find any good examples, does anyone have a code snippet of generating a RSA keypair in C++ that I may see?

Any help would be appreciated, thanks.
Don't use the openssl functions. Use the built openssl from the command-line. That is consistent and always works.

The functions and macros change across versions, and the openssl build versions are sinsitive to compiler versions. It's a real mess.

http://www.cplusplus.com/forum/unices/13827/
I didn't ask for an opinion.

And for what I need it, I cannot simply "Call it from the command line".
With such a pleasant and polite attitude I;m sure you'll get lots of help. I've done it before, but I'm sure someone else will help you.
Not to sound rude, but that comment is extremely arrogant.

I'm simply saying that I cannot accomplish what I'm trying to do through the openSSL command line interface. I need to write a function that creates a RSA public/private keypair with a specific integer length (1024, 2048, ect.) and then run signing on text information (username / password). And I know nothing about using it as a "UNIX" or whatever it's called.

What I'm trying to accomplish is more so a system for account encryption/decryption based on x509 certificates, but not quite x509 (doesn't have certain x509 fields).

Last edited on
Topic archived. No new replies allowed.