Problem with ProFTPD SSL (Debian 9)

Copying certificate, key and CA to ProFTPD files …
… wrote out certificate in /etc/proftpd/proftpd.cert and key in /etc/proftpd/proftpd.key
Enabling SSL in ProFTPD configuration …
… done

Applying FTP server configuration …
… failed :

Starting proftpd (via systemctl): proftpd.serviceJob for proftpd.service failed because the control process exited with error code.
See “systemctl status proftpd.service” and “journalctl -xe” for details.

systemctl status proftpd.service:

● proftpd.service - LSB: Starts ProFTPD daemon
Loaded: loaded (/etc/init.d/proftpd; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-09-07 13:36:05 CEST; 2min 25s ago
Docs: man:systemd-sysv-generator(8)
Process: 4471 ExecStop=/etc/init.d/proftpd stop (code=exited, status=0/SUCCESS)
Process: 4492 ExecStart=/etc/init.d/proftpd start (code=exited, status=1/FAILURE)

Sep 07 13:36:05 srv1 systemd[1]: Starting LSB: Starts ProFTPD daemon…
Sep 07 13:36:05 srv1 proftpd[4492]: Starting ftp server: proftpd2017-09-07 13:36:05,995 srv1 proftpd[4499]: fatal: unknown configuration directive ‘TLSRSACertificateFile’ on line 92 of ‘/etc/proftpd/proftpd.conf’
Sep 07 13:36:06 srv1 proftpd[4492]: failed!
Sep 07 13:36:05 srv1 systemd[1]: proftpd.service: Control process exited, code=exited status=1
Sep 07 13:36:06 srv1 systemd[1]: Failed to start LSB: Starts ProFTPD daemon.
Sep 07 13:36:06 srv1 systemd[1]: proftpd.service: Unit entered failed state.
Sep 07 13:36:06 srv1 systemd[1]: proftpd.service: Failed with result ‘exit-code’.

I found a solution.

  1. install virtualmin-config package version 6.0.16
  2. virtualmin config-system --include ProFTPd
  3. manually added “Include /etc/proftpd/modules.conf” to proftpd.conf (without it, there is a fault “fatal: unknown configuration directive ‘TLSEngine on’”)

That didn’t work for me unless there is something magic about version 6.0.16 that wouldn’t work with an current version of virtualmin.

I still get: