Skip to content

Commit

Permalink
Fir to generate keys in PEM format for ProFTPd
Browse files Browse the repository at this point in the history
As explained [here](https://www.virtualmin.com/node/68613#comment-823497), _mod_sftp_ expects PEM format for now, while latest versions of `ssh-keygen` (distributed with Debian 10 and Fedora) declared it as "legacy", and require explicit declaration for PEM format to be generated.
  • Loading branch information
iliajie committed Mar 9, 2020
1 parent f0fd119 commit a05b83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Virtualmin/Config/Plugin/ProFTPd.pm
Expand Up @@ -92,11 +92,11 @@ sub actions {
# Generate ssh key pairs
if (!-f '/etc/proftpd/ssh_host_ecdsa_key') {
$self->logsystem(
"ssh-keygen -f /etc/proftpd/ssh_host_ecdsa_key -t ecdsa -N ''");
"ssh-keygen -f /etc/proftpd/ssh_host_ecdsa_key -t ecdsa -N '' -m PEM");
}
if (!-f '/etc/proftpd/ssh_host_rsa_key') {
$self->logsystem(
"ssh-keygen -f /etc/proftpd/ssh_host_rsa_key -t rsa -N ''");
"ssh-keygen -f /etc/proftpd/ssh_host_rsa_key -t rsa -N '' -m PEM");
}

my $vmconf = <<"EOF";
Expand Down

0 comments on commit a05b83a

Please sign in to comment.