fun KeyStore.toPKCS12(keyPasswd: CharArray? = null, aliasFilter: Regex? = null): KeyStore
Returns a new PKCS12 keystore using this keystore entries. Returns the same instance if it's already a PKCS12 one.
keyPasswd - key entry password.
aliasFilter - filter regex to include the specific aliases only.