Creating ASN.1 Set of Sets

2010-07-23 Thread decoder
Hello, so far, I've been using i2d_ASN1_SET to create a set of ASN1_INTEGER (to include it in a custom X509 certificate). The problem is, that I need to create a set of sets of ASN1_INTEGER now and I'd like to know whats the best way to do this. What I've tried is using a STACK of STACK of AS

Re: Question about custom X509 extensions

2010-06-09 Thread decoder
icate? Cheers, Chris On 06/08/2010 02:06 PM, Dr. Stephen Henson wrote: > On Tue, Jun 08, 2010, Bruce Stephens wrote: > > >> decoder writes: >> >> [...] >> >> >>> Ok, so what I am currently doing is something lik

Re: Question about custom X509 extensions

2010-06-08 Thread decoder
Hi, > Hex encoding surely ought to increase the size by a factor of exactly 2? > (Plus a few bytes for the tag and length.) > 2 is correct without the colon but the OpenSSL function I use adds them. Of course you are right, it would be possible with 2 :) > An extension has an OID, a criticality

Question about custom X509 extensions

2010-06-06 Thread decoder
Hello, I am currently developing an application that stores custom data in the X509 client certificate. Some of this data is binary and I managed to store it in a custom extension. Initially, I encoded this data using i2s_ASN1_OCTET_STRING() to obtain a hex encoded version. When viewing the certi