Skip to content

Commit

Permalink
Merge pull request #5 from iliarostovtsev/patch-1
Browse files Browse the repository at this point in the history
Fix to generate keys in PEM format for ProFTPd
  • Loading branch information
swelljoe committed Mar 30, 2020
2 parents 9baa904 + a05b83a commit 48323c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Virtualmin/Config/Plugin/ProFTPd.pm
Original file line number Diff line number Diff line change
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 48323c6

Please sign in to comment.