Re: [openssl-users] Convert RSA key string to PEM file.

2016-01-01 Thread Sugumar
Ya your example looks good. Thanks. And i have another method, i have created BIO by passing that key to BIO_new_mem_buf function then from that BIO i got a RSA structure using PEM_read_bio_RSAPublicKey function. Is that will work for me??? Code: RSA* CreateRSAStruct(void* data, GetKey type) {

Re: [openssl-users] Convert RSA key string to PEM file.

2016-01-01 Thread Ken Goldman
On 1/1/2016 4:29 AM, Sugumar wrote: Hi, I have a RSA Public key as string type. I need to convert this string to PEM file. Please help me to create PEM file from string type. Convert the string to a binary array. Convert the array n and e to bignum *bn = BN_bin2bn(bin, bytes, *bn); Cr

[openssl-users] Convert RSA key string to PEM file.

2016-01-01 Thread Sugumar
Hi, I have a RSA Public key as string type. I need to convert this string to PEM file. Please help me to create PEM file from string type. If u have any sample programs pls post it also for better understanding. -- View this message in context: http://openssl.6102.n7.nabble.com/Convert-RSA-key