Failing to read password protected pem file

2008-05-27 Thread Kenneth Goldman
I'm having trouble programmatically reading a password protected .pem file. With the same openssl library, I can read it using the openssl command line. Based on the below failure call stack, it seems to be failing getting the nid for the cipher. I suspect some compiler or linker option, but th

unable to verify PKCS#7 objects signed with BC(CMS)

2008-05-27 Thread travis+ml-users
So a developer at my company is having a problem. When our business partner signs a data object using Bouncy Castle (PKCS#7 CMS), outputs PEM, and we use OpenSSL and read it in, that works fine, but when we try to get the data out of it, we're getting a null string. My hunch is that PKCS7_dataDec

need some tech help is the correct address?

2008-05-27 Thread Louis Brezerakos
I am using fedora core 8 openssl req -new -keyout private/cakey.pem -out careq.pem \-config ./openssl.cnf I receive the following error. error on line -1 of ./openssl.cnf 3268:error:02001002:system library:fopen:No such file or drectory:bss_file.c:122:fopen('./openssl.cnf','rb') 34268:error:20

compilation error openssl-0.9.8g on CentOS5

2008-05-27 Thread Yogesh Test
hi, I want to upgrade openssl on my centos5 machine, that has default installation as openssl-0.9.5b. when i try to compile code i get error. [EMAIL PROTECTED] openssl-0.9.8g]# make[2]: Entering directory `/usr/local/openssl-0.9.8g.tar/openssl-0.9.8g/test' > ( :; LIBDEPS="${LIBDEPS:--L.. -ls

Re: How to load a chain of certificates ?

2008-05-27 Thread Ariel Salomon
Hi Pierre, If you are using this certificate chain for an SSL connection, use SSL_CTX_use_certificate_chain_file which does precisely what you are asking. If you are just looking for a way to load this chain for other uses, the source code for that function should help you out. take a loo

How to load a chain of certificates ?

2008-05-27 Thread delcour.pierre
Hello everyone, I have to load a chain of x509v3 certificates which is only one file, like this one (i cut it): -BEGIN CERTIFICATE- MIIEjjC[...]7DjKlgcOcx -END CERTIFICATE- -BEGIN CERTIFICATE- MIIEfzC[...]ds0pfH -END CERTIFICATE- -BEGIN CERTIFICATE- MIIE

Re: AES CTR128

2008-05-27 Thread karim Bendadda
http://fixunix.com/openssl/249591-evp_decryptfinal_ex-bad-decrypt.html On Tue, May 27, 2008 at 10:58 AM, karim Bendadda <[EMAIL PROTECTED]> wrote: > Try this: http://www.grandville.net/pmwiki.php/OpenSSL/AES-CBC-EVP > > Openssl EVP API makes AES encryption/decryption. > > > On Mon, May 26, 2008

Re: AES CTR128

2008-05-27 Thread karim Bendadda
Try this: http://www.grandville.net/pmwiki.php/OpenSSL/AES-CBC-EVP Openssl EVP API makes AES encryption/decryption. On Mon, May 26, 2008 at 5:54 PM, Mohamed Amine Ourmech <[EMAIL PROTECTED]> wrote: > Good morning, > I want to test the AES CTR128 encryption of openSSL but infortunately i > cou

Handshake and BIO

2008-05-27 Thread Vladimir Sabanov
Hi, all! How can i do handshake before using BIO pairs for encrypt/decrypt, if as transport i use Winsock(WSASend and WSARecv)? Thanks for support! Best regards, Vladimir Sabanov. __ OpenSSL Project

AES CTR128

2008-05-27 Thread Mohamed Amine Ourmech
Good morning, I want to test the AES CTR128 encryption of openSSL but infortunately i could not find one. I have tested one but still i got errors in the output of the program. here is the code i tested (i found it on the internet), plz can anyone provide a really simple test program for the coun

Re: Certificate verification fails on MIPS architecture

2008-05-27 Thread Lutz Jaenicke
Till Elsner wrote: > I tried to track down the problem, but it still seems that , when it > comes to certificate verification, on the OpenWRT fails what works on > a standard linux desktop PC. I wrote a short program that validates > certificates, that I'll append to this mail. If someone has some

Re: No error messages on Linksys Openwrt

2008-05-27 Thread Lutz Jaenicke
Thomas Mangold wrote: > Hello > > calling i2d_RSAPublicKey() I get on a linksys running OpenWrt kamikaze > 7.09 the following errors. > error:0D07207B:lib(13):func(114):reason(123) > error:0D068066:lib(13):func(104):reason(102) > error:0D07803A:lib(13):func(120):reason(58) > > Can anybody please te