A
A
Alexey2014-03-31 15:50:48
Apache Ant
Alexey, 2014-03-31 15:50:48

How to make Apache Ant ignore SSL checks when downloading a file via get?

When I try to save a file from github, I get an error:

javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name

Task example:
<target name="lib">
    <get src="https://github.com/claus/as3swf/raw/master/bin/as3swf.swc" dest="lib/as3swf.swc"/>
</target>

Is there a way to make ant ignore SSL checks?
Ant runs under IntelliJ IDEA 13.1, JDK 1.7.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kiselev, 2014-04-01
@eka

In Java 7, SNI is enabled by default. In some cases this results in an error like yours. You can disable SNI when starting Ant or IDEA.
-Djsse.enableSNIExtension=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question