Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. val certFile = new java.io.File("/path/to/my_cert.pem")
  2. val keyFile = new java.io.File("/path/to/my_key.pkcs8.key")
  3.  
  4. val sslContext = SslContextBuilder.forClient()
  5. .keyManager(certFile, keyFile)
  6. .trustManager(util.InsecureTrustManagerFactory.INSTANCE)
  7. .build()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement