Re: Certificate verification fails on MIPS architecture

2008-05-22 Thread Michael S. Zick
On Thu May 22 2008 16:59, Till Elsner wrote: > Hi, > > I'm running a program using some OpenSSL features for certificate > handling on an MIPS architecture (Linksys WRT router with OpenWRT > firmware). On an x86 Linux everything works fine, but on the router > the certficate verification usi

Certificate verification fails on MIPS architecture

2008-05-22 Thread Till Elsner
Hi, I'm running a program using some OpenSSL features for certificate handling on an MIPS architecture (Linksys WRT router with OpenWRT firmware). On an x86 Linux everything works fine, but on the router the certficate verification using X509_verify_cert fails. The certificate used matche

Re: [Base64 Decoding] Bug when decoding??

2008-05-22 Thread Dr. Stephen Henson
On Thu, May 22, 2008, karim Bendadda wrote: > Hi All, > >I'm trying to decode a Base64 encoded string. Using the openssl decoding > command:* > > echo > "nnnKZdKOQMmVpLEOBqNU3L07ELMSoQxW0z7SvgZBmwXpjvMYPqnSMaWy9vu6NFUHGc40nhLbaFe8vI159nZHHdMOssHyfI6kzXljRolfrSX6bNjcMvfy7k5J+2xo451u=" > | ope

Re: [Base64 Decoding] Bug when decoding??

2008-05-22 Thread Victor Duchovni
On Thu, May 22, 2008 at 02:20:07PM +0200, karim Bendadda wrote: > Hi All, > >I'm trying to decode a Base64 encoded string. Using the openssl decoding > command:* > > echo > "nnnKZdKOQMmVpLEOBqNU3L07ELMSoQxW0z7SvgZBmwXpjvMYPqnSMaWy9vu6NFUHGc40nhLbaFe8vI159nZHHdMOssHyfI6kzXljRolfrSX6bNjcMvfy7k

problems with BIO pairs and SSL handshake

2008-05-22 Thread Vladimir Sabanov
Hi! I have some server and async. transport on WINSOCK. Send and receive do with next operations: DWORD CSSLTLSLayer::Receive(IN OVERLAPPED *pOverlapped, IN WSABUF *pBuffer, OUT PDWORD pdwWasRecv) { DWORD dwRet = __

Problem with X509_REQ_set_subject_name

2008-05-22 Thread Brian Smith
I am working on a function to create a CSR from OpenSSL 0.9.7m. So far, my function runs perfectly on x86_64, win32, solaris, and SGI, but seems to create a segfault on Linux ia64. Basically it goes like this: Open the private key PEM_read the private key create a new X509_REQ X509_REQ_set_pubkey

Re: [Base64 Decoding] Bug when decoding??

2008-05-22 Thread Dominique Lohez
You have to write a loop 1) extract the 64 first byte from the coded string and copy the to a working buffer 2) convert the working buffer to aat most 48 bytes result buffer 3) copy the working buffer to the the result 4) continue with the next 64 byte s of the input string karim B

Re: [Base64 Decoding] Bug when decoding??

2008-05-22 Thread karim Bendadda
Hi Dominique, First I'd like to thank you for your quick answer. You're right, it works well when spliting. I'd like now to do it using the openssl API (I found the function above on the web). This function works well for input at most 64 bytes .May I have to do a manual split where input is

Corrupt signatures caused by linebreaks in e-mails

2008-05-22 Thread Peer Heinlein
We're trying to sign e-mails with the following openssl-command: openssl smime -sign \ -signer ${PEM_FILE} \ -text \ -out $OUTFILE.tmp \ -inkey ${PEM_FILE} \ -in "$INFILE" \ -from "$FROM" \ -to "$TO" \ -subject "$SUBJECT" Unfortunatly the signature of the signed e-mail is broken,

Re: [Base64 Decoding] Bug when decoding??

2008-05-22 Thread Dominique Lohez
Hello karim The line must be at most 64 octets long using the file essai.pem where the unique has been splited in three the command openssl enc -base64 -d -in essai.pem works. but be carefull most of the characterare not printables karim Bendadda a écrit : Hi All, I'm trying to decode

[Base64 Decoding] Bug when decoding??

2008-05-22 Thread karim Bendadda
Hi All, I'm trying to decode a Base64 encoded string. Using the openssl decoding command:* echo "nnnKZdKOQMmVpLEOBqNU3L07ELMSoQxW0z7SvgZBmwXpjvMYPqnSMaWy9vu6NFUHGc40nhLbaFe8vI159nZHHdMOssHyfI6kzXljRolfrSX6bNjcMvfy7k5J+2xo451u=" | openssl enc -base64 -d *I got no result! nothing!!! I tried to

error 20 at 0 depth lookup:unable to get local issuer certificate

2008-05-22 Thread tomy
Hi all, I have created the server and client certificates. But while doing openssl verify -CAfile ca.crt server.crt, is is giving following error.So what is the reason for this?. server.crt: /C=IN/ST=BANGALORE/O=Kalki Communication Technologies/CN=server error 20 at 0 depth lookup:unable t