Decrypting Client TLS Finish

2005-06-14 Thread Brijesh Nambiar
Hi, I am trying to decrypt the client TLS finish. The TLS client finish message should contain 4 bytes of header (1 byte of type + 3 bytes of len), 12 bytes of verify data, 20 bytes of sha1-mac, 3 bytes of padding an 1 bytes of padlen. The EVP_CipherFinal fails with the following error

Re: Certificate chain problem

2005-06-14 Thread Eleftheria Petraki
Hi all, with the intermediate CA in the SSLCertificateChainFile the openssl s_client -connect ..., returns verify code: 0 (ok). The certificate chain reports two certificates, the server and the intermediate CA certificate with the correct issuers, while just after CONNECTED(004) I can

how to EVP_SignInit_ex() ?

2005-06-14 Thread coco coco
Sorry if this is a dumb question, I'm not sure why EVP_SignInit_ext() is giving me unhandled exception error. My code is a very simple testing code: char * clearText = testing openssl; char cryptText[MAX_LEN]; char buf[MAX_LEN]; unsigned char ubuf[MAX_LEN];

Re: Need objective arguments against double certificate

2005-06-14 Thread Bernhard Froehlich
coco coco wrote: My apologies if this is not really an openssl question. Just want to get some ideas from the gurus here. There is this company (a so-called partner) which has hired an external security consultant to oversee the security of a project which makes use of crypto quite heavily.

Signed data in CMS format

2005-06-14 Thread Madhu Sudhan Reddy
Hello All, I have the requirement to sign the data in CMS format. I used PKCS7_sign function , which outputs data in PKCS#7 format. After creating signed data, I am passing the data to the function Verify_CMS() (This function is not listed below, part of

Signed data in CMS format

2005-06-14 Thread Madhu Sudhan Reddy
Hello All, I have the requirement to sign the data in CMS format. I used PKCS7_sign function , which outputs data in PKCS#7 format. After creating signed data, I am passing the data to the function Verify_CMS() (This function is not listed below, part of

r.e testing beta

2005-06-14 Thread Rodney Thayer
I've tried one of the 0.9.8 snapshots and make test is failing, after running for an enormous amount of time. (openssl-0.9.8-stable-SNAP-20050613.tar.gz) Two questions: 1. what's the output supposed to look like, these days? Specifically, is it supposed to run a long time? 2. where's the

Re: Need objective arguments against double certificate

2005-06-14 Thread Victor Duchovni
On Tue, Jun 14, 2005 at 12:14:54AM -1000, coco coco wrote: My apologies if this is not really an openssl question. Just want to get some ideas from the gurus here. There is this company (a so-called partner) which has hired an external security consultant to oversee the security of a

Re: PKCS12 client

2005-06-14 Thread david kine
Thank you Heikki Toivonen and Goetz Babin-Ebell, your suggestions were very helpful. -David david kine wrote: How does one load verify locations into a SSL_CTX from in-memory X509 certificates? You can get the X509_STORE from the SSL_CTX. There you do an X509_STORE_add_cert()

Re: using AES encryption

2005-06-14 Thread Nils Larsch
Julien ALLANOS wrote: Hello, I want to use AES encryption in my C application, but I am missing documentation. I only have openssl/aes.h but there isn't any manpage. Can someone points me to any how-to or source code? Thanks for you help. consider using the EVP_Cipher* etc. functions (see

Re: mini-ASN.1 compiler 0.9.8-beta5

2005-06-14 Thread Nils Larsch
pana wrote: Hi, I try to run the mini-ASN.1 compiler with several OpenSSL version but it doesn't work. The -genstr option results ever unknown by the system. Where is the error? What I miss? works for me, what did you do ? Nils

Re: r.e testing beta

2005-06-14 Thread Nils Larsch
Rodney Thayer wrote: I've tried one of the 0.9.8 snapshots and make test is failing, after running for an enormous amount of time. (openssl-0.9.8-stable-SNAP-20050613.tar.gz) Two questions: 1. what's the output supposed to look like, these days? what do you get ? Specifically, is it

Re: r.e testing beta

2005-06-14 Thread Ben Laurie
Rodney Thayer wrote: I've tried one of the 0.9.8 snapshots and make test is failing, after running for an enormous amount of time. (openssl-0.9.8-stable-SNAP-20050613.tar.gz) Two questions: 1. what's the output supposed to look like, these days? Specifically, is it supposed to run a long

Re: Certificate chain problem

2005-06-14 Thread Goetz Babin-Ebell
Eleftheria Petraki wrote: Hi all, Hello Elefteria, with the intermediate CA in the SSLCertificateChainFile the openssl s_client -connect ..., returns verify code: 0 (ok). The certificate chain reports two certificates, the server and the intermediate CA certificate with the correct issuers,

Re: how to EVP_SignInit_ex() ?

2005-06-14 Thread coco coco
try a EVP_MD_CTX_init() before using the EVP_MD_CTX objects Thanks, not very familiar with openssl at all, this is the first time trying to get something quickly done with openssl. Is there any developer guide, like giving better description of the API provided by openssl, beside the

Re: Need objective arguments against double certificate

2005-06-14 Thread coco coco
Thanks all for replying. More heated debates I guess. _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

DSA_sign maximum digest length?

2005-06-14 Thread Andrey Warkentin
Hi everybody, I am not at all familiar with OpenSSL or DSA, but I was tinkering around trying to get DSA_sign/DSA_verify to work. I've stumbled upon a peculiar issue I have not seen brought up anywhere else, or documented. Somehow I am not able to sign messages longer than 20 bytes. The error

Re: how to EVP_SignInit_ex() ?

2005-06-14 Thread Heikki Toivonen
coco coco wrote: Is there any developer guide, like giving better description of the API provided by openssl, beside the O'Reilly book? It doesn't have to be tutorial, I'm quite ok with crypto stuff in Java, but using openssl has been a try-and-error process so far, and constantly need to

doubt regd oid

2005-06-14 Thread sravan
Hello all, I have an application wherein I digitally sign files. In that application, I have an option to include timestamp of the *data file* in the signature as an un-authenticated attribute. I would like to know the OID this attribute should have. Since I am not timestamping the