Re: RSA key

2011-04-13 Thread pattabi raman
Hi Dave, Thanks for your reply. *1. If I can't use sprintf then how can I copy the enrypted message to a character buffer. Bcoz so far I am sending the request to middleware in Char Buffer using TCP /IP socket. How can I able to achieve now.* ** *2. Actually I am using 2048 bit public key. So

Re: OpenSSL SSL_Accept Error

2011-04-13 Thread Harshvir Sidhu
Server is Single Threaded and is handling all the connections in while(1) loop, the sockets are blocking but I am using FD_SET options, not sure if that could be interrupting with the way openssl works, in the code i am doing accept, then created SSL and CTX and then calling SSL_Accept. I am NOT

Unsupported certificate purpose

2011-04-13 Thread Amar P. Patel
I get a verify error:num=26:unsupported certificate purpose error. How do I fix this? Regards, Amar Sent from my iPhone __ OpenSSL Project http://www.openssl.org User Support Mailing List

command line to c++ code

2011-04-13 Thread luis hernandez
Hi I do not know if you have talk about this here, but I can not find the answer. How to translate a command line commandt to a c++ code? For instance if at commandd prompt i do this: openssl x509 -inform DER -in cert.cer -noout -enddate What code will generate the same result? Is there

Re: conversion from pem to pkcs12

2011-04-13 Thread Zico
On Tue, Apr 12, 2011 at 3:53 AM, Dave Thompson dthomp...@prinpay.comwrote: Aside: If the -in file contains both the cert and the privatekey, you don't need to provide -inkey in addition. But the error is that the cert and privatekey don't match. At least one of these files is not what you

Re: command line to c++ code

2011-04-13 Thread John R Pierce
On 04/13/11 10:16 AM, luis hernandez wrote: Hi I do not know if you have talk about this here, but I can not find the answer. How to translate a command line commandt to a c++ code? For instance if at commandd prompt i do this: openssl x509 -inform DER -in cert.cer -noout -enddate What

Re: RSA key

2011-04-13 Thread David Schwartz
On 4/13/2011 2:35 AM, pattabi raman wrote: *1. If I can't use sprintf then how can I copy the enrypted message to a character buffer. Bcoz so far I am sending the request to middleware in Char Buffer using TCP /IP socket. How can I able to achieve now.* ** If you don't know how to copy bytes

RE: command line to c++ code

2011-04-13 Thread luis hernandez
Date: Wed, 13 Apr 2011 12:41:16 -0700 From: pie...@hogranch.com To: openssl-users@openssl.org Subject: Re: command line to c++ code On 04/13/11 10:16 AM, luis hernandez wrote: Hi I do not know if you have talk about this here, but I can not find the answer. How to translate a

Re: command line to c++ code

2011-04-13 Thread John R Pierce
On 04/13/11 4:11 PM, luis hernandez wrote: take a look at the source to openssl (the executable utility). I believe its in C and it, obviously, can do every possible command line that it does. One month doing it that way but there is not other way. its that or spend month(s) learning