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] Which Coverity project to subscribe to?

2016-01-01 Thread Jeffrey Walton
I see there are two OpenSSL projects listed at https://scan.coverity.com/projects?utf8=%E2%9C%93&search=openssl : * OpenSSL * OpenSSL_release I'm guessing OpenSSL_release is the results from the sources in the release tarball. Is that correct? Is there a list covering, say, daily builds? Would

[openssl-users] Difference between BIO and Normal openssl functions

2016-01-01 Thread Sugumar
Hi, I have seen both BIO and normal openssl functions. Actually what is the difference between both the functions. Example: We have PEM_read_BIO_RSAPrivatekey and PEM_read_RSAPrivatekey functions, What makes these functions different from each other -- View this message in context: http:/

[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