RE: Obtaining EC Public Key from X509 PEM endcoded cert

2009-03-11 Thread Larson, John
m X509 PEM endcoded cert On Wed, Mar 11, 2009 at 12:10:47PM -0700, Larson, John wrote: > As the subject says I'm grabbing a public key from a PEMK encoded X509 > cert and I compute the SHA-1 hash over this to create a signer id. This > is done by using PEM_read_X509 to read the PEM

Obtaining EC Public Key from X509 PEM endcoded cert

2009-03-11 Thread Larson, John
Hi all, As the subject says I'm grabbing a public key from a PEMK encoded X509 cert and I compute the SHA-1 hash over this to create a signer id. This is done by using PEM_read_X509 to read the PEM cert into an x509 struct, using X509_get_pubkey to obtain the public key as an EVP_PKEY from the

RE: Error reading EC Private Key from PEM file

2009-02-24 Thread Larson, John
reading EC Private Key from PEM file On Tue, Feb 24, 2009, Larson, John wrote: > Hi again, > > I have printed out the human readable error output of the call to > PEM_read_PrivateKey and it is a s such: > > > > error:0906B072:lib(9):func(107):reason(114) > > >

Error reading EC Private Key from PEM file

2009-02-24 Thread Larson, John
using version 0.9.8g which I know is slightly outdated if that makes a difference. -John Larson From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Larson, John Sent: Monday, February 23, 2009 5:17 PM To: openssl-user

[no subject]

2009-02-23 Thread Larson, John
Hi all, I am working on some code that takes an existing EC Private Key stored in a PEM file and uses it to create a digital signature. In my code the call I make to read the private key continues to return a NULL pointer. I perform the call as such: pkey = PEM_read_PrivateKey(keyFile, NUL

Obtaining EC Public Key from X.509 cert

2009-02-12 Thread Larson, John
Hi, I'm working on a simple C-program to parse an X.509 certificate in PEM format, retrieve the public key and hash it so I can add this to a data package being sent to different remote sites and, at those sites, compare the hash to the subjectKeyIdentifier of the end-entity certificate and thu