Hi,

Iam interested in knowing how OpenSSL handles large certificates
in an SSL connection. My understanding is that OpenSSL would
dynamically allocate memory buffers for the certificate and process
them.

We are running OpenSSL in a device where memory is at a premium.
The concern is that if the cert (rogue cert) is too large, then OpenSSL
may malloc all available system memory which may cause our device
hang or crash. This would make the device subject to Denial of Service
attacks.

Is there any way in Openssl to specify a max limit to the size of the
certificates it handles in a SSL connection and reject certificates bigger

than that size.

thanks,
Krishna

Eric Rescorla wrote:

> Oops. Hit send too early. Here's the complete resonse.
>
> "Krishnaswamy R." <[EMAIL PROTECTED]> writes:
> > Is there is any maximum size defined in TLS for a server's
> > certificate sent to the client?
> Yes, but it's ridiculously large.
>
> Officially, both any single certificate and the server's cert
> chain as a whole are limited to 2^24-1 bytes. In practice
> the limit is 5-10 bytes longer because no handshake message can
> be longer than 2^24-1 bytes and so when you factor in the
> size of various length bytes and such you get a little shrinkage.
>
> -Ekr
>
> --
> [Eric Rescorla                                   [EMAIL PROTECTED]]
>                http://www.rtfm.com/
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to