[pve-devel] [PATCH] Fix command line arguments when creating the ssl private key

Emmanuel Kasper e.kasper at proxmox.com
Mon Jun 13 16:18:11 CEST 2016


A fresh pve-cluster installation on top of Debian would err
because the ssl private key generation failed.
---
 data/PVE/Cluster.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 9e76af3..fa4a08f 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -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]);
 }
-- 
2.1.4





More information about the pve-devel mailing list