RE: Cipher setting error: 'experimental'

2011-09-22 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Rajib Karmakar > Sent: Monday, 19 September, 2011 03:53 > Thanks for your reply. I got the steps I mentioned after some > googling. But > those steps are not working. I understand you must be very > busy, but I am > stuck into there from then

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Chang Lee
Nice tip. I'll look into that. On Thu, Sep 22, 2011 at 4:19 AM, Frank Morgner wrote: > On Thursday, September 22 at 08:41AM, Dominik Oepen wrote: > > > > Am 21.09.2011 23:27, schrieb Chang Lee: > > > Does anyone know of a way to take an ASN1_OCTET_STRING that contains a > > > DER encoded Seque

Re: [openssl-users] View OCSP response in CMS

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Gabriel Marques wrote: > Thanks Steve and Erwann, > > Putting the OCSP response inside a tagged object did the job for > OpenSSL recognizing the OtherRevocationInfoFormat. > BouncyCastle also changed the CMS version to 5 automatically when I > did it, and I've changed the OI

Re: Error While Signature verification ..

2011-09-22 Thread Kenneth Goldman
A failed signature verification can have many causes. E.g., - bad digest - bad signature - bad public key - bad OID I debug by doing a raw public key operation on the signature. If you see obvious padding and a good OID, and the digest doesn't match, then you have to debug why the hash that wa

Re: SSL_ERROR_SSL

2011-09-22 Thread BharadwajNS
Hi, As far as I know, there is no point going again to the loop when we have SSL_ERROR_SSL. Suppose in case of SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE this would have made sense. Maybe there is a timeout or watchdog which stops it from consuming a lot of time and closes the socket. Since ev

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Frank Morgner
On Thursday, September 22 at 08:41AM, Dominik Oepen wrote: > > Am 21.09.2011 23:27, schrieb Chang Lee: > > Does anyone know of a way to take an ASN1_OCTET_STRING that contains a > > DER encoded Sequence and extract the contents of the Sequence as an > > ASN1_STRING. Essentially, I want to constru

Re: Parsing the .crt extension certificate file to extract the details

2011-09-22 Thread rbrahmaa
rbrahmaa wrote: > > Hi All, > > I am entirely new to OpenSSL, 0% knowledge of this. > > My Requirement is to Parse the *.crt extension certificate and extract all > the details like issuer, public key,validity details,serial > no,OU,O,C,Signature Algorithm,subject and display same on the scree

problems creating p12 for android

2011-09-22 Thread Richard Pickett
I have attempted several scripts to create a ca and then a client cert p12 bundle. The p12 is then downloaded on an android device, and it seems to be hit-and-miss. Some certs work, some certs never work. It stops at the point where the android is importing the cert and asks for the password. There

Re: TLS 1.0 "cracked"...

2011-09-22 Thread Ben Laurie
On Wed, Sep 21, 2011 at 3:48 PM, Thomas J. Hruska wrote: > The Register published an article yesterday that some people here might be > interested in on TLS 1.0 being "cracked": > > http://www.theregister.co.uk/2011/09/19/beast_exploits_paypal_ssl/ > > > The Register points their Finger of Blame r

IPv6 support with OCSP

2011-09-22 Thread John Foley
Does the OpenSSL OCSP stack support IPv6 in version 0.9.8r? __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager

creating p12 - what am I doing wrong?

2011-09-22 Thread Richard Pickett
I have attempted several scripts to create a ca and then a client cert p12 bundle. The p12 is then downloaded on an android device, and it seems to be hit-and-miss. Some certs work, some certs never work. It stops at the point where the android is importing the cert and asks for the password. There

starttls smtp

2011-09-22 Thread maztermind
I have config TLS on my sendmail server but when i try to verify it i get this errors: #openssl verify -CApath /etc/mailcerts/CA -CAfile cacert.pem openssl s_client -CAfile /etc/mailcerts/cacert.pem -CApath /etc/mailcerts/CA -connect localhost:25 -starttls smtp CONNECTED(0003) depth=0 C = SE

Re: [openssl-users] View OCSP response in CMS

2011-09-22 Thread Gabriel Marques
Thanks Steve and Erwann, Putting the OCSP response inside a tagged object did the job for OpenSSL recognizing the OtherRevocationInfoFormat. BouncyCastle also changed the CMS version to 5 automatically when I did it, and I've changed the OID to the proper one (id-ri-ocsp-response). Now OpenSS

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Chang Lee
ASN1_get_object() got the job done. Thanks. On Thu, Sep 22, 2011 at 1:34 PM, Dr. Stephen Henson wrote: > On Thu, Sep 22, 2011, Chang Lee wrote: > > > Thanks for the info. I'll try to get it to work using ASN1_get_object(). > > Just for my edification, was my approach using the templates and mac

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Chang Lee wrote: > Thanks for the info. I'll try to get it to work using ASN1_get_object(). > Just for my edification, was my approach using the templates and macros not > a viable option? > Well it would work but you'd have to parse the whole structure which isn't necessar

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Chang Lee
Thanks for the info. I'll try to get it to work using ASN1_get_object(). Just for my edification, was my approach using the templates and macros not a viable option? On Thu, Sep 22, 2011 at 12:22 PM, Dr. Stephen Henson wrote: > On Thu, Sep 22, 2011, Chang Lee wrote: > > > I'm trying to parse the

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Chang Lee wrote: > I'm trying to parse the content of an ASN1_OCTET_STRING, which I know/expect > to be a DER encoded SEQUENCE, into an object. I need to do this because I'm > trying to verify an Authenticode signature. I need to generate a digest of > the contents of the s

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Chang Lee
I'm trying to parse the content of an ASN1_OCTET_STRING, which I know/expect to be a DER encoded SEQUENCE, into an object. I need to do this because I'm trying to verify an Authenticode signature. I need to generate a digest of the contents of the signedData sans the type & length bytes. Now gene

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Michael S. Zick
On Thu September 22 2011, Chang Lee wrote: > Thanks Dominik for the tip. Actually, I have been poring over the OpenSSL > code, though we're using the 0.9.8 branch, hoping to find a built-in > primitive SEQUENCE to use but to no avail. As you say, there are templates > for primitives and I looked

Re: [openssl-users] View OCSP response in CMS

2011-09-22 Thread Erwann Abalea
Le 22/09/2011 16:10, Dr. Stephen Henson a écrit : On Thu, Sep 22, 2011, Erwann Abalea wrote: [...] In your examples, you set version to 3. Based on your parsed example, it seems you correctly set the tag ([1]) for the "crls" element, but you didn't use the good encoding for the "other" field (

Re: [openssl-users] openssl and rfc 5280

2011-09-22 Thread Erwann Abalea
Le 22/09/2011 16:10, Roger No-Spam a écrit : Hi, I'm trying to understand if openssl is a good base when implementing a system that is to be compliant with rfc 5280. Are there any limitations or missing parts in openssl? Using OpenSSL, you can implement a system mostly compliant with RFC5280

creating p12 bundle for android - what am I doing wrong?

2011-09-22 Thread Richard Pickett
I have attempted several scripts to create a ca and then a client cert p12 bundle. The p12 is then downloaded on an android device, and it seems to be hit-and-miss. Some certs work, some certs never work. It stops at the point where the android is importing the cert and asks for the password. There

RE: openssl and rfc 5280

2011-09-22 Thread Roger No-Spam
I should perhaps mention that the title of rfc 5280 is PKIX Certificate and CRL Profile. The system we are implementing is an 'end entity'. Regards Roger From: roger_no_s...@hotmail.com To: openssl-users@openssl.org Subject: openssl and rfc 5280 Date: Thu, 22 Sep 2011 16:10:12 +0200 Hi

openssl and rfc 5280

2011-09-22 Thread Roger No-Spam
Hi, I'm trying to understand if openssl is a good base when implementing a system that is to be compliant with rfc 5280. Are there any limitations or missing parts in openssl? Regards Roger

Re: [openssl-users] View OCSP response in CMS

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Erwann Abalea wrote: > Le 21/09/2011 21:20, Gabriel Marques a écrit : > >I'm developing a tool for signing digital TV apps, and one of the > >goals was to embed OCSP responses into the CMS signature file of > >the application. > >The idea is that the broadcaster equipment wou

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Chang Lee wrote: > Thanks Dominik for the tip. Actually, I have been poring over the OpenSSL > code, though we're using the 0.9.8 branch, hoping to find a built-in > primitive SEQUENCE to use but to no avail. As you say, there are templates > for primitives and I looked at

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Dr. Stephen Henson
On Thu, Sep 22, 2011, Dominik Oepen wrote: > > However, I'm not exactly sure whether or not the ASN1 subsystem is meant > to be used outside of OpenSSL. I couldn't find a lot of documentation > about it and learned how to use it by reading the source. Maybe one of > the OpenSSL developers could c

Re: TLS 1.0 "cracked"...

2011-09-22 Thread Johan van Selst
Mounir IDRASSI wrote: > So, an OpenSSL based web server is immune from this attack, unless it > uses the flag SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS. Which is exactly what Apache and some other popular applications seem to be doing. Maybe this flag should not be included in SSL_OP_ALL after all. Reg

Re: Convert ASN1_OCTET_STRING contents to ASN1 Sequence

2011-09-22 Thread Chang Lee
Thanks Dominik for the tip. Actually, I have been poring over the OpenSSL code, though we're using the 0.9.8 branch, hoping to find a built-in primitive SEQUENCE to use but to no avail. As you say, there are templates for primitives and I looked at how the PKCS7 was composed from those primitives

Error While Signature verification ..

2011-09-22 Thread brajan
hi i am using openssl 0.9.8g version to verify the Java signed message. while verifing i got bad signature error how ever the same signature is verified in the Java correctlu ... erro occur in if (((unsigned int)sig->digest->length != m_len) || (memcmp(m,sig->digest->data,m_len) != 0))

Re: Open SSL API's Support For IPv6.

2011-09-22 Thread Nilotpal De
Hi, You can try this once. Use socket library connect() to get the connected socket. Then use BIO_new_socket() and pass the connected socket descriptor. Then, on the socket BIO you can try BIO_set_nbio() and BIO_do_connect(). With regards, Nilotpal On Thu, Sep 22, 2011 at 2:15 PM, A

RE: Open SSL API's Support For IPv6.

2011-09-22 Thread Akanksha Shukla
Hi Wim, Thanks a lot for your reply. But I am still left with few queries: 1) From your reply, what I understood is that Bio_new_connect() doesn't support IPv6. But what about other two API's BIO_set_nbio() and BIO_do_connect() ??. Do these API's support IPv6? 2) Are there any OpenSSL API which ca

Re: [openssl-users] View OCSP response in CMS

2011-09-22 Thread Erwann Abalea
Le 21/09/2011 21:20, Gabriel Marques a écrit : I'm developing a tool for signing digital TV apps, and one of the goals was to embed OCSP responses into the CMS signature file of the application. The idea is that the broadcaster equipment would query the OCSP and update the response with certain