]> git.proxmox.com Git - pve-cluster.git/commitdiff
Fix command line arguments when creating the ssl private key
authorEmmanuel Kasper <e.kasper@proxmox.com>
Mon, 13 Jun 2016 14:18:11 +0000 (16:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jun 2016 07:50:34 +0000 (09:50 +0200)
A fresh pve-cluster installation on top of Debian would err
because the ssl private key generation failed.

data/PVE/Cluster.pm

index 9e76af3eb648fe957295aa969aab3cb9f05d4bfc..fa4a08fcac2e45d12160157ff00cee392871eb3a 100644 (file)
@@ -154,7 +154,7 @@ sub gen_auth_key {
 
     mkdir $authdir || $! == EEXIST || die "unable to create dir '$authdir' - $!\n";
 
-    run_silent_cmd(['openssl', 'genrsa -out', $authprivkeyfn, '2048']);
+    run_silent_cmd(['openssl', 'genrsa', '-out', $authprivkeyfn, '2048']);
 
     run_silent_cmd(['openssl', 'rsa', '-in', $authprivkeyfn, '-pubout', '-out', $authpubkeyfn]);
 }