Right now I have a .cert and .key pair of files, however I would like to be able to get the ASN1 style buffers so that my C program can call SSL_CTX_use_certificate_ASN1 and SSL_CTX_use_RSAPrivateKey_ASN1
I have tried to use the output of: openssl asn1parse -in test.key -out test.key.der openssl asn1parse -in test.cert -out test.cert.der But I get the following: 1083804592:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:946: 1083804592:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:304:Type=X509 1083804592:error:140AC00D:SSL routines:SSL_CTX_use_certificate_ASN1:ASN1 lib:ssl_rsa.c:556: Any ideas as to how I can get the ASN1 data so that I can put it on a char buffer? Thanks, Alberto -- Alberto Alonso Global Gate Systems LLC. (512) 260-2523 http://www.ggsys.net Hardware, consulting, collocation, monitoring and remote backups ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]