Re: get key from an SSL object

2008-04-07 Thread Victor Duchovni
On Mon, Apr 07, 2008 at 06:57:49PM -0600, Tuan Vu wrote: > Yes I have to do it myself. My problem is, I cant find any API in the > openssl document that let me extract keys from both sides given an SSL > object. So I was wondering how I can get those keys. Thanks. Forget APIs for a moment, you ar

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
Yes I have to do it myself. My problem is, I cant find any API in the openssl document that let me extract keys from both sides given an SSL object. So I was wondering how I can get those keys. Thanks. On Mon, Apr 7, 2008 at 6:52 PM, Victor Duchovni < [EMAIL PROTECTED]> wrote: > On Mon, Apr 07, 2

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
I made a typo so here is my question again: After a SSL connection is established, from A's side, I need to get the A's private key part 1). From B's side I need to get A's public key (part 2). I looked at the SSL document and only found EVP_PKEY *SSL_get_privatekey(SSL *ssl), can I use this API

Re: get key from an SSL object

2008-04-07 Thread Victor Duchovni
On Mon, Apr 07, 2008 at 06:34:29PM -0600, Tuan Vu wrote: > Yes I know it makes no sense, but this is what I have to do in the > assignment. > I complained to the prof already but he still wants to do something like > that. If it is an assignment, you have to do it. Not much point in OpenSSL users

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
Yes I know it makes no sense, but this is what I have to do in the assignment. I complained to the prof already but he still wants to do something like that. On Mon, Apr 7, 2008 at 6:29 PM, Victor Duchovni < [EMAIL PROTECTED]> wrote: > On Mon, Apr 07, 2008 at 06:25:21PM -0600, Tuan Vu wrote: > >

Re: get key from an SSL object

2008-04-07 Thread Victor Duchovni
On Mon, Apr 07, 2008 at 06:25:21PM -0600, Tuan Vu wrote: > Assume that I write a client app A and a server app B. A and B set up a SSL > connection. A wants to send B some file and its signature. Once B receives > the file and its signature, B has to verify if it's correct or not. Once you have t

get key from an SSL object

2008-04-07 Thread Tuan Vu
Hi, Assume that I write a client app A and a server app B. A and B set up a SSL connection. A wants to send B some file and its signature. Once B receives the file and its signature, B has to verify if it's correct or not. I dont want A and B to exchange any signing key manually. Instead, I want