Apache does not start after upgrade to 1.1.11

  • Hi Laurent,
    today i did upgrade an server from Build: 20140327 to version 1.1.11.
    While upgrading i got the question about the certifcate for the panel an the i-MSCP services. That works perfect.
    After the upgrade i tried to login to the panel, but the apache was down.
    In the error log i did found this

    Code
    1. [Fri Jun 13 17:10:07 2014] [error] Init: Unable to read server certificate from file /etc/imscp/srv01.my-domain.tld.pem[Fri Jun 13 17:10:07 2014] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag[Fri Jun 13 17:10:07 2014] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error


    I did take a look in the file "/etc/imscp/srv01.my-domain.tld.pem" and there was every cert inside. The only thing i'd seen which makes me a little bit confused was this line

    Code
    1. -----END CERTIFICATE----------BEGIN CERTIFICATE-----


    This line is the end of my cert and the start of the intermediate cert.
    I did add a line break

    Code
    1. -----END CERTIFICATE-----
    2. -----BEGIN CERTIFICATE-----


    and the apache starts without any problem.


    Can you please check this problem.
    Sascha

  • Hello ;


    Sure, I'll check and fix. I already know why this occurs ;)

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

  • @TheCry

    This is not a bug. You just need to make sure that your certificate has a line feed at the end.

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

  • I did thought that is a problem with a missing EOL. But I'm using the original files from PSW. Maybe you can add a check of EOL. I'm not the only one who use certs from there.. ;)
    I will add the EOL by myself. Then i can update the rest of the servers

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