From 5604f334ee9461cfaf7d89189a6ddcc931ca39f4 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 30 Sep 2014 07:54:51 -0400 Subject: [PATCH] Register BouncyCastle as a JCE provider --- src/main/java/com/gitblit/transport/ssh/SshDaemon.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java index 261daa66..6bcc0390 100644 --- a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java +++ b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java @@ -85,6 +85,9 @@ public class SshDaemon { // Ensure that Bouncy Castle is our JCE provider SecurityUtils.setRegisterBouncyCastle(true); + if (SecurityUtils.isBouncyCastleRegistered()) { + log.debug("BouncyCastle is registered as a JCE provider"); + } // Generate host RSA and DSA keypairs and create the host keypair provider File rsaKeyStore = new File(gitblit.getBaseFolder(), "ssh-rsa-hostkey.pem"); -- 2.39.5