Extensions for java.security.KeyStore

saveToFile

fun KeyStore.saveToFile(output: File, password: String): Unit

Save KeyStore to output file with the specified password