# Keytool asking for password for keystore , none applied ever

**URL:** <https://discuss.elastic.co/t/keytool-asking-for-password-for-keystore-none-applied-ever/321713>\
**Category:** Elasticsearch\
**Created:** [December 21, 2022, 3:57am UTC](https://discuss.elastic.co/t/keytool-asking-for-password-for-keystore-none-applied-ever/321713 "2022-12-21T03:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atul\_Chadha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atul_chadha/32/75469_2.png) [@Atul\_Chadha](https://discuss.elastic.co/u/Atul_Chadha)\
**Post date:** [December 21, 2022, 3:57am UTC](https://discuss.elastic.co/t/keytool-asking-for-password-for-keystore-none-applied-ever/321713/1 "2022-12-21T03:57:27Z")

</div>

We are on ES version 7.17 and trying to setting up cross cluster ( remote ). I am trying to add cert from one node to remote in the elastic-certificates.p12 file using below command

`keytool -importcert -noprompt -keystore /etc/elasticsearch/elastic-certificates.p12 -alias WT-Kibana -file /tmp/elastic.pem`

its telling me keystore is password protected, i never had one and can confirm with below command

```auto
/usr/share/elasticsearch/bin/elasticsearch-keystore has-passwd

ERROR: Keystore is not password-protected

```

I have tried keytool from java and elasticsearch, is there a default ES keystore password ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 18, 2023, 3:58am UTC](https://discuss.elastic.co/t/keytool-asking-for-password-for-keystore-none-applied-ever/321713/2 "2023-01-18T03:58:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
