javax.net.ssl.SSLHandshakeException: java.lang.IllegalArgumentException: Invalid input to toASCII: ip_nbae7bac35.kodrive.xyz
Your issue is that you can not convert a string to ASCII using toASCII that contains an _
. There is no way around this other than to get in touch with the owner of the domain and ask them to remove the _
. This is why you got an IllegalArgumentException
, the string was "illegal".