MIME types for PEM encoded CRLs

2012-10-27 Thread Graham Leggett
Hi all, I understand as per RFC2585 that the MIME type for a CRL is application/pkix-crl, but I am struggling to figure out whether there is a way to specify using MIME types and/or content negotiation whether the CRL is PEM encoded or DER encoded. Is there a Content-Encoding for PEM

Re: MIME types for PEM encoded CRLs

2012-10-27 Thread Stefan H. Holek
On 27.10.2012, at 13:36, Graham Leggett wrote: I understand as per RFC2585 that the MIME type for a CRL is application/pkix-crl, but I am struggling to figure out whether there is a way to specify using MIME types and/or content negotiation whether the CRL is PEM encoded or DER encoded.

Re: MIME types for PEM encoded CRLs

2012-10-27 Thread Graham Leggett
On 27 Oct 2012, at 2:18 PM, Stefan H. Holek ste...@epy.co.at wrote: I understand as per RFC2585 that the MIME type for a CRL is application/pkix-crl, but I am struggling to figure out whether there is a way to specify using MIME types and/or content negotiation whether the CRL is PEM

How to create a PKCS7 for a Signature using SHA256

2012-10-27 Thread redpath
I thought I had posted this already but cannot seem to find it. I have tried by all means to figure out the API to create a PKCS7 for a signature file. Basically I have a signature file and want to wrapper it in a PKCS7. The Signature is an ECDSA and uses a SHA256 digest of a file that needs to

Certificate lookup

2012-10-27 Thread flowher
I'm using 'openssl verify -CApath /something/cert CERT_TO_VERIFY' to verify certificate chains. I just found out that some certificates are positively verified even if I do not provide argument '-CApath /something/cert'. Root cause of such behavior is the fact that openssl uses certificates in

Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Alban D.
Hi everyone, iSEC Partners just released a paper that provides detailed guidelines and sample code on how to properly do certificate validation with OpenSSL: http://www.isecpartners.com/blog/2012/10/14/the-lurking-menace-of-broken-tls-validation.html It is not trivial and so I thought this

Re: MIME types for PEM encoded CRLs

2012-10-27 Thread Peter Sylvester
On 10/27/2012 02:51 PM, Graham Leggett wrote: Section 4.1 says: Encoding considerations: will be none for 8-bit transports and most likely Base64 for SMTP or other 7-bit transports What I'm after is how to interpret section 4.1 in the context of HTTP content negotiation. Regards, Graham

add hash signature as part of the stream on which this hash is based on

2012-10-27 Thread Michael Zintakis
Maybe a bit daft of me to ask this, but is it possible to calculate a hash on a stream of bytes where the resulting hash is considered to be part of that stream? In other words, lets assume that I have a stream which is, say, 64 bytes long in total, consisting of 48 bytes of payload, plus

Re: Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Jeffrey Walton
On Sat, Oct 27, 2012 at 11:00 AM, Alban D. blan...@gmail.com wrote: Hi everyone, iSEC Partners just released a paper that provides detailed guidelines and sample code on how to properly do certificate validation with OpenSSL:

Re: Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Jeffrey Walton
On Sat, Oct 27, 2012 at 11:00 AM, Alban D. blan...@gmail.com wrote: Hi everyone, iSEC Partners just released a paper that provides detailed guidelines and sample code on how to properly do certificate validation with OpenSSL:

Re: Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Jeffrey Walton
On Sat, Oct 27, 2012 at 11:00 AM, Alban D. blan...@gmail.com wrote: Hi everyone, iSEC Partners just released a paper that provides detailed guidelines and sample code on how to properly do certificate validation with OpenSSL:

Re: Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Peter Sylvester
The way how common names are verified in The Most Dangerous Code in the World: Validating SSL Certificates in Non-Browser Software is not correct. It gives a false match when there is more than one common name ava __ OpenSSL

Re: Reference material on how to do certificate validation with OpenSSL

2012-10-27 Thread Jeffrey Walton
On Sat, Oct 27, 2012 at 11:00 AM, Alban D. blan...@gmail.com wrote: Hi everyone, iSEC Partners just released a paper that provides detailed guidelines and sample code on how to properly do certificate validation with OpenSSL:

RE: add hash signature as part of the stream on which this hash is based on

2012-10-27 Thread Charles Mills
Isn't that a little like the guy who committed suicide, cut himself up in little pieces, and flushed himself down the toilet? Some checksums are computed such that the checksum is part of the message, and if all if well, the checksum of the entire message including the appended sum is 0 or 0x