James Moger
2013-03-29 dc6ac495aff03d13f0b830de6cdc29d509534206
Disable SNI extensions for client SSL connections
2 files modified
5 ■■■■■ changed files
releases.moxie 1 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/utils/ConnectionUtils.java 4 ●●●● patch | view | raw | blame | history
releases.moxie
@@ -10,6 +10,7 @@
    fixes:
     - Could not reset settings with $ or { characters through Gitblit Manager because they are not properly escaped
     - Added more error checking to blob page and blame page
     - Disable SNI extensions for client SSL connections
     - Fix NPE when getting user's fork without repository list caching (issue 182)
     - Fix internal error on folder history links (issue 192)
     - Fixed incorrect icon file name for .doc files (issue 200)
src/main/java/com/gitblit/utils/ConnectionUtils.java
@@ -61,6 +61,10 @@
        SSL_CONTEXT = context;
        HOSTNAME_VERIFIER = new DummyHostnameVerifier();
        CHARSET = "UTF-8";
        // Disable Java 7 SNI checks
        // http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0
        System.setProperty("jsse.enableSNIExtension", "false");
    }
    public static void setAuthorization(URLConnection conn, String username, char[] password) {