loading cert from memory buffer

2003-12-15 Thread Aleksey Dorosheff
i got CA cert in header file declarated like this static const unsigned char s_pbCaCertificate[] = { 0x30, 0x82, 0x03, 0x98, 0x30, 0x82, 0x03, 0x01, ...}; how can i load it to X509Store? i guess i should use BIO? __ Op

set an external callback for encryption

2003-12-15 Thread david jeanneteau
Hi all, I want to use openssl with a smartcard containing RSA private key and RSA cipher capabilities. Is there a way to tell SSL that it should use a given callback (from smartcard API) for applying private key (the one on the smart card). Regards, David Jeanneteau ___

Re: loading cert from memory buffer

2003-12-15 Thread Nils Larsch
Aleksey Dorosheff wrote: i got CA cert in header file declarated like this static const unsigned char s_pbCaCertificate[] = { 0x30, 0x82, 0x03, 0x98, 0x30, 0x82, 0x03, 0x01, ...}; try d2i_X509 how can i load it to X509Store? i guess i should use BIO? look how it's done in, for example,

Re: set an external callback for encryption

2003-12-15 Thread Nils Larsch
david jeanneteau wrote: Hi all, I want to use openssl with a smartcard containing RSA private key and RSA cipher capabilities. Is there a way to tell SSL that it should use a given callback (from smartcard API) for applying private key (the one on the smart card). You need a openssl engine for

Re: set an external callback for encryption

2003-12-15 Thread david jeanneteau
Nils Larsch wrote: david jeanneteau wrote: Hi all, I want to use openssl with a smartcard containing RSA private key and RSA cipher capabilities. Is there a way to tell SSL that it should use a given callback (from smartcard API) for applying private key (the one on the smart card). You nee

Re: set an external callback for encryption

2003-12-15 Thread Nils Larsch
david jeanneteau wrote: It is a supplied smarcard and i don't have all docs yet, but is seems that an API is supplied to access it. What kind of API ? (btw: which OS are you using (on your pc) ?). So it looks like i have to create an engine that bind's on the smartcard API. probably I'm a

Does openssl supports 256 bit AES and 256 bit SHA1?

2003-12-15 Thread CPRAVEEN
I know that the latest version of openssl supports AES and SHA1. Pls let me know if openssl supports 256 bit AES and 256 bit SHA1 TIA. Rgds Praveen __ OpenSSL Project http://www.openssl.org Use

loading cert from memory buffer

2003-12-15 Thread Aleksey Dorosheff
i got CA cert in header file declarated like this unsigned char s_pbCaCertificate[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d...}; (this buffer i`ve made it form PEM cert file and from DER, no