CircleCI's Java image doesn't support Server Name Indication (SNI)

gradle
java

#1

I’m running a Java build with the CircleCI-provided OpenJDK image and it seems to fail dependency resolution against the Maven Central repository mirrors, which use Server Name Indication (SNI). Does the Java/Gradle included with CircleCI 2.0 not support SNI?

> Could not resolve all dependencies for configuration 'classpath'.
   > Could not resolve commons-codec:commons-codec:1.6.
     Required by:
         unspecified:unspecified:unspecified
      > Could not resolve commons-codec:commons-codec:1.6.
         > Could not get resource 'https://repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom'.
            > Could not HEAD 'https://repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom'.
               > Host name 'repo1.maven.org' does not match the certificate subject provided by the peer (CN=a.ssl.fastly.net, O="Fastly, Inc.", L=San Francisco, ST=California, C=US)

This is using the circleci/openjdk:8-jdk base image.


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.