Openssl API: Extracting Public Key Algorithm

2011-07-22 Thread Erwin Himawan
Hi All, I would like to get each of the field and value of the public key info from the certificate using the API: - public key algo: id-ecPublicKey - Size of the pub key (256 bit). - pub: 02:1d:7d:69:c5:7e:ef:15:f0:76:6a:60:5a:9e:1e: 68:1f:33:6c:ca:10:62:5a:21:6e:ab:4f:d

Re: How to extract Certificate info from file with multible certificates?

2011-07-22 Thread Alex Lindberg
Thanks. --- On Fri, 7/22/11, Victor Duchovni wrote: From: Victor Duchovni Subject: Re: How to extract Certificate info from file with multible certificates? To: openssl-users@openssl.org Date: Friday, July 22, 2011, 4:15 PM On Fri, Jul 22, 2011 at 02:03:27PM -0700, Alex Lindberg wrote: > I h

Re: How to extract Certificate info from file with multible certificates?

2011-07-22 Thread Victor Duchovni
On Fri, Jul 22, 2011 at 02:03:27PM -0700, Alex Lindberg wrote: > I have a certificate file CAcert.pem containing two or more certificates > between BEGIN/END blocks. > > the openssl command only seems to read the first certificate. > > How can I extract information from all certs in a single fi

How to extract Certificate info from file with multible certificates?

2011-07-22 Thread Alex Lindberg
I have a certificate file CAcert.pem containing two or more certificates between BEGIN/END blocks. the openssl command only seems to read the first certificate. How can I extract information from all certs in a single file? It would be nice to do something like: openssl x509 -noout -in CA

Re: DH_compute_key query

2011-07-22 Thread Prashant Batra
Thanks Steve a ton. I think I was missing some basic design understanding. -Prashant On Fri, Jul 22, 2011 at 5:08 PM, Dr. Stephen Henson wrote: > On Thu, Jul 21, 2011, Prashant Batra wrote: > > > Hello, > > > > I am using DH exchange in ikev2 for generating secret key b/w 2 parties. > > I am obs

Re: DH_compute_key query

2011-07-22 Thread Dr. Stephen Henson
On Thu, Jul 21, 2011, Prashant Batra wrote: > Hello, > > I am using DH exchange in ikev2 for generating secret key b/w 2 parties. > I am observing some awkward thing, > in some of the cases, the secret calculated by both the parties is not the > same, although the input (public key, private key

Re: OpenSSL unable to load certificate error

2011-07-22 Thread Dr. Stephen Henson
On Thu, Jul 21, 2011, Wang-Martin, Linda wrote: > Hi, > I recently got the latest version of OpenSSL (1.0.0) however I now have a > problem with one of my certificates that I didn't use to have in an older > version. Specifically, whenever I try to do anything with this particular > certificate

OpenSSL unable to load certificate error

2011-07-22 Thread Wang-Martin, Linda
Hi, I recently got the latest version of OpenSSL (1.0.0) however I now have a problem with one of my certificates that I didn't use to have in an older version. Specifically, whenever I try to do anything with this particular certificate I run into an: 1472:error:0D0680A8:asn1 encoding routines:

Multiple OpenSSL versions in process, dynamic loading/lookup in use

2011-07-22 Thread dave.mclellan
Hi. I'm looking for experiences in the community with dynamic loading and lookup of crypto/SSL entry points when multiple versions of the libraries might be loaded into the process space. Background is too detailed to start with, so I'll watch for takers and interested parties, so as not to c