Setting system properties in 2-way ssl


#1

While using 2-way ssl in client side , I was loading keystores and truststores and setting them like this .

    System.setProperty("javax.net.ssl.keyStore", "/home/prannav/digi-projects/test/certjks        /clientkeystore.jks")
    System.setProperty("javax.net.ssl.keyStorePassword", "123456")
    System.setProperty("javax.net.ssl.trustStore", "/home/prannav/digi-projects/test/certjks /clienttruststore.jks")
   System.setProperty("javax.net.ssl.trustStorePassword", "123456")

When I try to do the same in kotlin , handshake is not happening.How do I do it in kotlin