karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [15/15] karaf git commit: [KARAF-5286] Log when server key is generated
Date Thu, 03 Aug 2017 14:35:27 GMT
[KARAF-5286] Log when server key is generated


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/b403db38
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/b403db38
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/b403db38

Branch: refs/heads/OPENSSH
Commit: b403db3877c11f362c4dc1c4020b7aed9d8d2d7d
Parents: 964ba7a
Author: Christian Schneider <chris@die-schneider.net>
Authored: Thu Aug 3 11:52:44 2017 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Thu Aug 3 15:53:23 2017 +0200

----------------------------------------------------------------------
 shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/b403db38/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
----------------------------------------------------------------------
diff --git a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
index a40eb9c..f3325df 100644
--- a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
+++ b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java
@@ -158,6 +158,7 @@ public class Activator extends BaseActivator implements ManagedService
{
         
         Path serverKeyPath = Paths.get(hostKey);
         if (!serverKeyPath.toFile().exists()) {
+            
             createServerKey(serverKeyPath.toFile(), algorithm, keySize);
         }
 
@@ -195,6 +196,7 @@ public class Activator extends BaseActivator implements ManagedService
{
 
     private void createServerKey(File keyFile, String algorithm, int keySize) {
         try {
+            logger.info("Creating ssh server key at " + keyFile);
             KeyPair kp = new OpenSSHKeyPairGenerator(algorithm, keySize).generate();
             new PemWriter(keyFile).writeKeyPair(algorithm, kp);
         } catch (Exception e) {


Mime
View raw message