If you are receiving the following error after configuring a local pk12 

Error creating bean with name 'secretsFormResource' defined in URL [bundleentry://111.fwk1543105131/OSGI-INF/blueprint/secrets-restapi.xml]: Initialization of bean failed; nested exception is org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating bean internalSecretsEncryptionService of class com.semarchy.platform.secrets.internal.DefaultInternalSecretsEncryptionService
[Blueprint Extender: 3] WARN org.apache.aries.blueprint.container.BeanRecipe - Object to be destroyed is not an instance of UnwrapperedBeanHolder, type: null
[Blueprint Event Dispatcher: 1] ERROR com.semarchy.platform.infra.InfraBundleListener - Unable to start Semarchy xDM platform caused by:
NullPointerException:
While starting bundle com.semarchy.platform.secrets_5.3.8.20211206-d3c415b [111]

This is because for Keystore type pkcs12 the key password is required. The key password will be the same password as the keystore password. 

Here is a sample local KMS configuration. 


export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_TYPE=LOCAL
export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_KEYSTORE_FILE=/Users/username/semarechyKey
export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_KEYSTORE_PASSWORD=testingkey
export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_KEYSTORE_KEY=semarchy
export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_KEYSTORE_KEYPASSWORD=testingkey
export XDM_SECRETS_INTERNAL_KMS_LOCALKEYSTORE_KEYSTORE_TYPE=pkcs12