RE: How to read the RSA key pair easyly into an RSA object?

2006-08-13 Thread kb2wjw
Hello openssl-users, I generate an RSA key-pair like this: openssl genrsa 1024 And put it's output into a PEM file. Now I need to read both private and public parts of the key-pair into an RSA object in a program. This is how I try handling the PEM: fp = fopen( priv_exp, "rb"

How to read the RSA key pair easyly into an RSA object?

2006-08-13 Thread kb2wjw
Hello openssl-users, I generate an RSA key-pair like this: openssl genrsa 1024 And put it's output into a PEM file. Now I need to read both private and public parts of the key-pair into an RSA object in a program. How do I do it? Is there any special function for that? (The private k

How to make base64-encoded file as single-lined?

2006-08-12 Thread kb2wjw
Hello openssl-users, For some peculiar reason I need to have a base64-encoded file to be written as one single line. Currently I get nice-looking, properly-wrapping files that I have to edit manually. What BIO flag should I set to avoid this formatting? Please comment. Thank you in