Free SSL certificates through Let's Encrypt

  • What kind of certificate?



    For admin panel (nginx) or imscp services (courier/dovecot, postfix, proftpd) you have to do these steps:


    • Execute the command to reconfigure ssl and panel_ssl:
      Code
      1. /var/www/imscp/engine/setup/imscp-setup -dr ssl panel_ssl
    • On the screen for the Private key open the file /etc/letsencrypt/live/domain.com/privkey.pem.
    • On the screen for the Certificate open the file /etc/letsencrypt/live/domain.com/cert.pem.
    • On the screen for the Intermediate certificate open the file /etc/letsencrypt/live/domain.com/chain.pem.

    @mrpink for services and panel I recommend the official way perl imscp-autoinstall -dr ssl panel_ssl. Just if someone don't want to rerun the installer and already have certs installed he can go your way (still not supported). Think it's better before someone breaks his system :D


    I just tried the combination of these 2. Ain't it failed with saying wrong ssl cert...


    it first asks for the private key ( then a password )
    followed with intermediate
    And as last it asks for the certificate ( at this point it fails )

  • Hi @ All,


    I've created my first cert with let's encrypt with

    Code
    1. ./letsencrypt-auto certonly -a manual

    It works fine and has created 4 files. (privkey, cert, chain and fullchain). But when i want copy the content of files (privkey-->private key, cert-->certifikat and fullchain-->ca-bundle or chain-->ca-bundle) imscp said "Ein Zertifikat in Ihrem CA-Bundle fehlt oder ist ungültig."


    I cant understand what is wrong.

    Es gibt viele Wege Danke zu sagen, der Einfachste ist das auch zu tun.


    Herzlichen Dank - Merci beaucoup -- Большое спасибо -- Thank you very much -- Muchas gracias

  • What do you want with a ca-bundle?


    privkey.pem -> Private Key
    cert.pem -> Certificate
    chain.pem -> Intermediate


    Thats all and it's working. It can't be that hard.


    And please check the howto because everything is explained there.

  • it first asks for the private key ( then a password )
    followed with intermediate
    And as last it asks for the certificate ( at this point it fails )

    Yes that's true.

    • Private key -> choose /etc/letsencrypt/live/domain.com/privkey.pem
    • On the Password dialog enter nothing (only hit enter)
    • Intermediate -> choose /etc/letsencrypt/live/domain.com/chain.pem
    • Certificate -> choose /etc/letsencrypt/live/domain.com/cert.pem

    It can't be that hard. Please also use your brains.


    And please check the howto because everything is explained there.

  • Thank you mrpink for your quick response.


    Yes it can't be that hard. I've 3 inputfields.


    1. Privater Schlüssel
    2. Zerfifikat
    3. CA Bundle

    Es gibt viele Wege Danke zu sagen, der Einfachste ist das auch zu tun.


    Herzlichen Dank - Merci beaucoup -- Большое спасибо -- Thank you very much -- Muchas gracias

  • Not sure why your third field is named CA Bundle (mine is named intermediate Certificate(s)). However, I have put the content of fullchain.pem in the third field and everything is working fine.
    1. => privkey.pem
    2. => cert.pem
    3. => fullchain.pem


    (fullchain.pem is indeed some kind of bundle since it bundles cert.pem and chain.pem)

    i-MSCP 1.5.3 | Ubuntu 18.04

  • I think the answer is my version from IMSCP is too old. Ash on my head, i've too long waited with updates.


    After my search i've found this...


    Zertifikat in ein i-MSCP einbinden

    Es gibt viele Wege Danke zu sagen, der Einfachste ist das auch zu tun.


    Herzlichen Dank - Merci beaucoup -- Большое спасибо -- Thank you very much -- Muchas gracias

  • Here the explanation for the different certificates in the live directory of a domain:


    • privkey.pem - private key
    • cert.pem - server certificate only
    • chain.pem - intermediates
    • fullchain.pem - server certificate + intermediates
  • @mrpink, do you think it could create problems if I took fullchain.pem as intermediate certificate? By now everything is working fine ..

    i-MSCP 1.5.3 | Ubuntu 18.04