5034080
From daded1aff280104d16e405fcd1be1a857c74b191 Mon Sep 17 00:00:00 2001
5034080
From: Kamil Dudka <kdudka@redhat.com>
5034080
Date: Mon, 27 Aug 2018 15:53:35 +0200
5034080
Subject: [PATCH] tests: make ssh-keygen always produce PEM format
5034080
5034080
The default format produced by openssh-7.8p1 cannot be consumed
5034080
by currently available versions of libssh and libssh2.
5034080
---
5034080
 tests/sshserver.pl | 4 ++--
5034080
 1 file changed, 2 insertions(+), 2 deletions(-)
5034080
5034080
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
5034080
index 9b3d122..d477a02 100755
5034080
--- a/tests/sshserver.pl
5034080
+++ b/tests/sshserver.pl
5034080
@@ -372,12 +372,12 @@ if((! -e $hstprvkeyf) || (! -s $hstprvkeyf) ||
5034080
     # Make sure all files are gone so ssh-keygen doesn't complain
5034080
     unlink($hstprvkeyf, $hstpubkeyf, $cliprvkeyf, $clipubkeyf);
5034080
     logmsg 'generating host keys...' if($verbose);
5034080
-    if(system "\"$sshkeygen\" -q -t rsa -f $hstprvkeyf -C 'curl test server' -N ''") {
5034080
+    if(system "\"$sshkeygen\" -q -t rsa -f $hstprvkeyf -C 'curl test server' -N '' -m PEM") {
5034080
         logmsg 'Could not generate host key';
5034080
         exit 1;
5034080
     }
5034080
     logmsg 'generating client keys...' if($verbose);
5034080
-    if(system "\"$sshkeygen\" -q -t rsa -f $cliprvkeyf -C 'curl test client' -N ''") {
5034080
+    if(system "\"$sshkeygen\" -q -t rsa -f $cliprvkeyf -C 'curl test client' -N '' -m PEM") {
5034080
         logmsg 'Could not generate client key';
5034080
         exit 1;
5034080
     }
5034080
-- 
5034080
2.17.1
5034080