We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7eedcf commit a419660Copy full SHA for a419660
src/main/scala/com/wordnik/swagger/codegen/util/RemoteUrl.scala
@@ -30,6 +30,15 @@ trait RemoteUrl {
30
is = conn.getInputStream()
31
Source.fromInputStream(is).mkString
32
}
33
+ catch {
34
+ case e: javax.net.ssl.SSLProtocolException => {
35
+ println("there is a problem with the target SSL certificate")
36
+ println("**** you may want to run with -Djsse.enableSNIExtension=false\n\n")
37
+ e.printStackTrace
38
+ throw e
39
+ }
40
+ case e: Exception => e.printStackTrace; throw e;
41
42
finally {
43
if(is != null) is.close()
44
0 commit comments