# Execution of kcadm command on keycloak 11 for Adding new realm keys from a Java Key Store file

**URL:** <https://forum.keycloak.org/t/execution-of-kcadm-command-on-keycloak-11-for-adding-new-realm-keys-from-a-java-key-store-file/10271>\
**Category:** Miscellanaeous\
**Created:** [July 28, 2021, 7:17pm UTC](https://forum.keycloak.org/t/execution-of-kcadm-command-on-keycloak-11-for-adding-new-realm-keys-from-a-java-key-store-file/10271 "2021-07-28T19:17:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yassineamira](https://avatars.discourse-cdn.com/v4/letter/y/848f3c/32.png) [@yassineamira](https://forum.keycloak.org/u/yassineamira)\
**Post date:** [July 28, 2021, 7:17pm UTC](https://forum.keycloak.org/t/execution-of-kcadm-command-on-keycloak-11-for-adding-new-realm-keys-from-a-java-key-store-file/10271/1 "2021-07-28T19:17:27Z")

</div>

i’m getting error when i’m executiong this commande :

> ```auto
> kcadm create components -r master -s name=java-keystore -s providerId=java-keystore -s providerType=org.keycloak.keys.KeyProvider -s "config.priority=[\"101\"]" -s "config.enabled=[\"true\"]" -s "config.active=[\"true\"]" -s "config.keystore=[\"C:/Users/yamira/Documents/keycloakLicence/keystore.jks\"]" -s "config.keystorePassword=[\"secret\"]" -s "config.keyPassword=[\"secret\"]" -s "config.alias=[\"localhost\"]"
> 
> ```

* * *

```auto

i'm getting this error on keycloak log side

`20:00:58,102 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-5) Uncaught server error: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of VALUE_STRING token at [Source: (io.undertow.servlet.spec.ServletInputStreamImpl); line: 1, column: 222] (through reference chain: org.keycloak.representations.idm.ComponentRepresentation["config"]->org.keycloak.common.util.MultivaluedHashMap["keystore"])`.

what's the problem
```
