Re: convert x509 cert into string and store certs in cache

2011-03-11 Thread Peter Sylvester
On 03/11/2011 11:57 AM, ikuzar wrote: Ok. In the doc, I think |i2d_X509() |is adequate to encode X509 *cert; The doc says : int i2d_X509(X509 *x, unsigned char **out); |i2d_X509()| encodes the structure pointed to by *x* into DER format. If *out* is not *NULL* is writes the DER encoded data t

Re: convert x509 cert into string and store certs in cache

2011-03-11 Thread ikuzar
nssl.org > *Subject:* Re: convert x509 cert into string and store certs in cache > > add to previous post, I 'd like to know what is the best format for > storing item in map. Item is here a struct which encapsulated certificate > object ( as shown in previous message ). >

RE: convert x509 cert into string and store certs in cache

2011-03-10 Thread Dave Thompson
string and store certs in cache add to previous post, I 'd like to know what is the best format for storing item in map. Item is here a struct which encapsulated certificate object ( as shown in previous message ). I think about DER format ... is it a good idea ? If you want sharing proc

Re: convert x509 cert into string and store certs in cache

2011-03-09 Thread ikuzar
add to previous post, I 'd like to know what is the best format for storing item in map. Item is here a struct which encapsulated certificate object ( as shown in previous message ). I think about DER format ... is it a good idea ? 2011/3/9 ikuzar > > > 2011/3/9 Dave Thompson > > > From:

Re: convert x509 cert into string and store certs in cache

2011-03-09 Thread ikuzar
2011/3/9 Dave Thompson > > From: owner-openssl-us...@openssl.org On Behalf Of ikuzar > > Sent: Tuesday, 08 March, 2011 13:02 > > > I am going to explain below what I HAVE TO do : > > a) I have to store certificates in a map which is a shared memory. > > ( I have to do this

RE: convert x509 cert into string and store certs in cache

2011-03-08 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of ikuzar > Sent: Tuesday, 08 March, 2011 13:02 > I am going to explain below what I HAVE TO do : > a) I have to store certificates in a map which is a shared memory. > ( I have to do this, I have no choice, because

Re: convert x509 cert into string and store certs in cache

2011-03-08 Thread ikuzar
Ok, things are more clear now. I am going to explain below what I HAVE TO do : a) I have to store certificates in a map which is a shared memory. ( I have to do this, I have no choice, because I have to continue what guy before me had started ). So I think it's better to store x509 structure which

Re: convert x509 cert into string and store certs in cache

2011-03-08 Thread Patrick Patterson
Hey there: On 2011-03-08, at 10:03 AM, ikuzar wrote: > my questions : > 1) What does DER format means ? is it equivalent to a string format ? > In the following function, we have a parameter named "out" : int > i2d_X509(X509 *x, unsigned char **out); this function convert X509 internal > data i

Re: convert x509 cert into string and store certs in cache

2011-03-08 Thread Bruce Stephens
ikuzar writes: [...] > my questions : > 1) What does DER format means ? Distinguished Encoding Rules. It's an encoding for ASN.1. See X.690. > is it equivalent to a string format ? It's a binary serialisation. So it's a string in the sense that it can be sent over protocols, saved in files