From: James Moger Date: Tue, 30 Sep 2014 11:54:51 +0000 (-0400) Subject: Register BouncyCastle as a JCE provider X-Git-Tag: v1.6.1~20^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5604f334ee9461cfaf7d89189a6ddcc931ca39f4;p=gitblit.git Register BouncyCastle as a JCE provider --- 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");