Fix SSL connection errors with Java 1.7.