Bug - Unable to add SSL certificate with private key which is protected by a passphrase

  • Hi Laurent,


    I found a bug in the OpenSSL.pm. It only occurs if you have the private key encrypted.
    The same certificate with manually decrypted private key is working without any problem.


    The validation in OpenSSL.pm function validatePrivateKey is ok.
    The problem only occurs at the function importPrivateKey, because the process is wating for the passphrase and the dialog window shows only this error and nothing in the logfiles.


    dialog-error.PNG


    When you check the process you could see, that the passphrase parameter is missing.


    process.PNG


    I checked the code in OpenSSL.pm but for me it is ok, so I don't know why it is not working.
    You know your code better, maybe you will see the problem. :)

  • @mrpink


    I'll test that again before releasing the 1.1.10 ;) Maybe a small mistake in the installer.


    BTW: Distro, codename in use?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @mrpink


    I'll check that now so. Should be easy to fix (eg, surely the password that is not set correctly) ;)


    Oh, I forget to ask, was for the panel certificate or services certificate?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Panel certificate, but I don't know if it will also occur on service cert, because it got stuck at the panel cert.

  • @mrpink


    Don't worry my friend, I'll check both ;

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Bug found. Password is not set correctly in installer..

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;


    Should be fixed. See https://github.com/i-MSCP/imsc…d20d5d47b9cb44bedf9ae6e42


    Please confirm that it's working now. Thanks :)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Already seen. :-)
    I will check later or tomorrow.


    Thank you.

  • @mrpink


    No please, check now. I must release 1.1.10 ;) (sorry)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206