helpGnuTLS - Support: sr #108155, GnuTLS doesn't accept passwords...


sr #108155: GnuTLS doesn't accept passwords larger than 32; NSS and OpenSSL do

Submitted by:  None
Submitted on:  Tue 09 Oct 2012 10:42:20 PM UTC  
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 10 Oct 2012 06:13:43 PM UTC, comment #1: 

Does the attached patch fix the issue for you? Could you verify that the longer passwords are compatible with NSS and openssl?


(file #26734)

Nikos Mavrogiannopoulos <nmav>
Project Administrator
Tue 09 Oct 2012 10:42:20 PM UTC, original submission:  

> _gnutls_pkcs12_string_to_key():
>      pwlen = strlen (pw);
>    if (pwlen > 63 / 2)
>      {
>        gnutls_assert ();
>      }

Compatibility issue between NSS, OpenSSL and GnuTLS. Because of the above snippet, passwords larger than 32 characters work fine in the former two; fail in GnuTLS.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #26734:  pkcs12.patch added by nmav (2KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by nmav (Updated the item)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-06 nmav Open/ClosedOpen => Closed
    2012-10-10 nmav Attached File- => Added pkcs12.patch, #26734

    Back to the top

    Powered by Savane 3.7