Fuel - Example SSL Client Configuration
import com.github.kittinunf.fuel.core.FuelManager import nl.altindag.ssl.SSLFactory class App { fun main(args: Array<String>) { val sslFactory = SSLFactory.builder() .withIdentityMaterial("identity.jks", "password".toCharArray()) .withTrustMaterial("truststore.jks", "password".toCharArray()) .build() FuelManager.instance.hostnameVerifier = sslFactory.hostnameVerifier FuelManager.instance.socketFactory = sslFactory.sslSocketFactory } }