letsencryp certificate for ftp etc.

Discussion in 'Installation/Configuration' started by janvl, Jun 11, 2025.

  1. janvl

    janvl Member

    Hi,
    i have found the following link where is desribed how to arrange a letsencrypt certificate for services like ftp.

    https://en.linuxportal.info/tutoria...s#ssl-kiterjesztese-a-tobbi-webszolgaltatasra

    This is from 2018 so i guess it is not fitting for ISPConfig 3.3.

    Is there description for doing this with ISPConfig 3.3 on Ubuntu 24.04 with Apache and PureFTP?
    The user uses Filezilla and that does not accept a selfsigned certificate (like there is now) as secure.

    Thanks,
    Jan
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    This should already be set up correctly. The pureftpd config sets the certificate to /etc/ssl/private/pure-ftpd.pem which is a symlink to /usr/local/ispconfig/interface/ssl/ispserver.pem

    Are you sure you get a self-signed certificate? Or is it rather that you connect via a hostname that is not the hostname of the server itself but rather a domain of a webspace on that host and get a name mismatch error?
     
  3. janvl

    janvl Member

    There seems to be a problem between Filezilla and PureFTP when using TLS.
    Alternatively it is advised to use SSH/SFTP.
    I have made an SSH-user for SFTP, the only thing that i cannot find yet is how to prevent the SFTP/SSL-user from seeing and/or downloading all serverfiles.
    Jan
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You must create it as jailed ssh user in ISPConfig.
     
  5. janvl

    janvl Member

    I must miss something, i made the user in ISPConfig "jailed" but was still able to download /etc/hosts.
    It is not that important because i am the only user anyway.
    Regasds Jan
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    A copy of /etc/hosts is in the jail. For you, it looks as if you are in the real system, but in fact you are in the jail and have only access to a limited set of files. You can check it like this, do:

    cd /web

    if you are in the web folder of the site afterwards, then you are in side the jail. If you would do this on your full server system, you just would receive a folder not found error as your server has no /web (folder web in root).
     
  7. janvl

    janvl Member

    Thank you Till for explaining.
    I have no experience with jails, were never in it ;-)
    I guess it is a good moment to start reading about chroot and jails.
    Regards,
    Jan
     
  8. remkoh

    remkoh Active Member HowtoForge Supporter

    Just use a different ftp-client.
    The problem lies between pure-ftpd and filezilla.
    Most other clients, like winscp, have no problems.
     
    till likes this.
  9. janvl

    janvl Member

    Thnaks remkoh,

    This is for a user that uses Filezilla. I am a Desktop-Linux-user with KDE and use Krusader or upload with rsync.

    Regards,
    Jan
     

Share This Page