Re: Simple question: Maximum length of PEM file?

2011-07-28 Thread Katif
Thanks Wim, for your kind & informative answer. Wim Lewis-3 wrote: > > > On 26 Jul 2011, at 10:16 PM, Katif wrote: >> Can you tell me what are the application dependency factor here so we'll >> be >> able to chase a limit? >> >> It is used as an RSA key exchange certification/private key p

Re: Simple question: Maximum length of PEM file?

2011-07-27 Thread David Schwartz
On 7/26/2011 10:16 PM, Katif wrote: Can you tell me what are the application dependency factor here so we'll be able to chase a limit? It is used as an RSA key exchange certification/private key pairing. Thanks... Maximum RSA key size supported. Extensions supported. DS __

Re: Simple question: Maximum length of PEM file?

2011-07-27 Thread Wim Lewis
On 26 Jul 2011, at 10:16 PM, Katif wrote: > Can you tell me what are the application dependency factor here so we'll be > able to chase a limit? > > It is used as an RSA key exchange certification/private key pairing. > > Thanks... The two things that are variable size are the key material it

Re: Simple question: Maximum length of PEM file?

2011-07-27 Thread Katif
Can you tell me what are the application dependency factor here so we'll be able to chase a limit? It is used as an RSA key exchange certification/private key pairing. Thanks... JoelKatz wrote: > > On 7/26/2011 4:38 AM, Katif wrote: > >> I need to know in advance the maximum length of the f

Re: Simple question: Maximum length of PEM file?

2011-07-26 Thread David Schwartz
On 7/26/2011 4:38 AM, Katif wrote: I need to know in advance the maximum length of the following three PEM formatted files (excluding the -BEGIN/END lines): It's application-dependent. There is no answer in general. DS _

Re: Simple question: Maximum length of PEM file?

2011-07-26 Thread Kenneth Goldman
Is that possible in general? There's no maximum key size or signature size, and certificates can have extensions. I typically read the file size first, then allocate memory, then read the file. In general, hard coding a maximum length is used to enable a buffer overflow attack. :-) owner-open

Simple question: Maximum length of PEM file?

2011-07-26 Thread Katif
Hi, I need to know in advance the maximum length of the following three PEM formatted files (excluding the -BEGIN/END lines): Private key file, Certificate file, CA certificate file. For example - the following file has 68 characters length: -BEGIN CERTIFICATE- MIIDCDCCAfACCQDhtkeH