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, NULL, NULL, "password");

 

I have confirmed both that I am referencing the correct file and that
the pass phrase I use ("password" in this example) is correct.  I
confirmed the password by executing on the command line:

 

openssl ec -in signer_key.pem -passin pass:password

 

Any ideas why my function call would still return NULL?

 

John Larson

JIPM Systems Engineer, ViaSat Inc.

Work: (760) 930-3594

Cell: (510) 435-3277

 

Reply via email to