PKCS12_create returns NULL for 0.9.8.h - Openssl

This is a discussion on PKCS12_create returns NULL for 0.9.8.h - Openssl ; Hello, since the upgrade from 0.9.8g to 0.9.8h the code below to generate a PKCS12 object failed! I have observed this on linux64 (debian 3.1) and WinXP. The parameter have not been changed and 'key' is an RSA key. The ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: PKCS12_create returns NULL for 0.9.8.h

  1. PKCS12_create returns NULL for 0.9.8.h

    Hello,

    since the upgrade from 0.9.8g to 0.9.8h the code below to generate a PKCS12
    object failed! I have observed this on linux64 (debian 3.1) and WinXP. The
    parameter have not been changed and 'key' is an RSA key.

    The code:

    ERR_clear_error();
    PKCS12 *pkcs12cont = PKCS12_create ((char*) pwd.c_str(), "id", key, cert, NULL,
    0,0,0,0,0);
    printf (ERR_error_string (ERR_peek_error(), NULL));
    printf ("\n%s\n", ERR_error_string (ERR_peek_last_error(), NULL));

    gives the output:

    pkcs12cont is NULL
    error:0D0BA041:asn1 encoding routines:ASN1_STRING_set:malloc failure
    error:0B08A041:x509 certificate routines:X509_ATTRIBUTE_set1_data:malloc failure


    Any ideas, what has been changed and how I can work around it?

    Thanks
    Jan
    __________________________________________________ ____________________
    OpenSSL Project http://www.openssl.org
    User Support Mailing List openssl-users@openssl.org
    Automated List Manager majordomo@openssl.org


  2. Re: PKCS12_create returns NULL for 0.9.8.h

    Hi,

    After applying the patch http://cvs.openssl.org/chngview?cn=17196 the problem is
    gone!


    >
    > Any ideas, what has been changed and how I can work around it?
    >


    Thanks
    __________________________________________________ ____________________
    OpenSSL Project http://www.openssl.org
    User Support Mailing List openssl-users@openssl.org
    Automated List Manager majordomo@openssl.org


  3. Re: PKCS12_create returns NULL for 0.9.8.h

    On May 31, 9:06*pm, j...@schnellbaecher.org ("Jan F. Schnellbaecher")
    wrote:
    > Hi,
    >
    > After applying the patchhttp://cvs.openssl.org/chngview?cn=17196the problem is
    > gone!
    >
    >
    >
    > > Any ideas, what has been changed and how I can work around it?

    >
    > Thanks
    > __________________________________________________ ____________________
    > OpenSSL Project * * * * * * * * * * * * * * * *http://www.openssl.org
    > User Support Mailing List * * * * * * * * * *openssl-us...@openssl.org
    > Automated List Manager * * * * * * * * * * * * * majord...@openssl.org


    Hi guys,,,,

    i have same problem.............pls suggest me how can we apply
    this???????????

    please help me

+ Reply to Thread