Jordi Jaen Pallares wrote:
...
Anyway, I will need to extract (sooner or later) the respective EC keys
from the certificate,
use X509_get_pubkey() + EVP_PKEY_get1_EC_KEY() (note: both
function increase the reference count of the object)
...
[EMAIL PROTECTED]:~/Work/test$ ./opencert
Opened key file...
Trying to read the keys...
File offset before reading : 0
File offset after reading : 47
Error in d2i_X509_fp...
10976:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
tag:tasn_dec.c:1291:
10976:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
error:tasn_dec.c:380:Type=X509
[EMAIL PROTECTED]:~/Work/test$
are you sure that the file doesn't contain a PEM encoded cert ?
Nils
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]