trustStore
fun KeyStore.trustStore(file: File? = null, password: CharArray = "changeit".toCharArray()): KeyStore
Content copied to clipboard
Extracts all certificates from the given KeyStore to use these certificates as a valid TrustStore.
A TrustStore should only contain the public certificates of a certificate authority, while their responding keys are private.
If file is set, all certificates are stored in a JKS keystore in file with password.