3

I have a problem while doing SSL connection through spray. I got the following error:

[SSLException:Unrecognized SSL message, plaintext connection?]

and I found an answer here.

So, how can I add the following to the JAVA_OPTS environment variable?

-Djsse.enableSNIExtension=false 

I am using Ubuntu 16.04 LTS.

Bilesh Ganguly
  • 3,792
  • 3
  • 36
  • 58
Nilesh
  • 2,054
  • 3
  • 23
  • 43
  • 1
    @Jens JAVA_OPTS is not a path, thus no `:` delimiter. It should be `set JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false"` - and even better, use `export` command instead of `set`. – Jozef Chocholacek Jul 21 '16 at 08:44
  • Check this answer: http://stackoverflow.com/a/3128172 – Beck Yang Jul 21 '16 at 12:00

0 Answers0