| | |
| | | |
| | | // 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"); |
| | |
| | | public String formatUrl(String gituser, String servername, String repository) { |
| | | if (sshd.getPort() == DEFAULT_PORT) { |
| | | // standard port |
| | | return MessageFormat.format("{0}@{1}/{2}", gituser, servername, |
| | | return MessageFormat.format("ssh://{0}@{1}/{2}", gituser, servername, |
| | | repository); |
| | | } else { |
| | | // non-standard port |