Last active
August 24, 2017 16:46
-
-
Save s1monw1/ba543dc2a8481858ac2a672ff04de3bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val fac = socketFactory { | |
keyManager { | |
open("certsandstores/clientkeystore") withPass "123456" beingA "jks" | |
} | |
trustManager { | |
open("certsandstores/myTruststore") withPass "123456" beingA "jks" | |
} | |
sockets { | |
cipherSuites = | |
listOf("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | |
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", | |
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA", | |
"TLS_DHE_RSA_WITH_AES_256_CBC_SHA") | |
timeout = 10_000 | |
} | |
} | |
val socket = fac.createSocket("192.168.3.200", 9443) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment