# Change Keystore and Private Key passwords

In case of HTTPS deployment of <code class="expression">space.vars.SITENAME</code>, if the user wants to change the existing keystore or private key passwords for <code class="expression">space.vars.SITENAME</code> certificate, this utility can be used to change and update the encrypted passwords in <code class="expression">space.vars.SITENAME</code> application.

Follow the steps given below for updating the encrypted keystore and private key passwords in <code class="expression">space.vars.SITENAME</code>:

* Stop OpsHub Server Service before execution of this utility.
* Navigate to `<code class="expression">space.vars.SITENAME</code> Installation Folder>/Other_Resources/Resources`.
* Unzip `"OpsHub Keystore Password Encryptor Utility.zip"`.
* Run `KeystorePasswordEncryptorUtility.bat` for Windows system. In case of Linux system, run `KeystorePasswordEncryptorUtility.sh`.
* Enter the path for OpsHub Installation Directory.

<div align="center"><img src="/files/08b46Prf4RPrpmzcf8Bf" alt="" width="1400"></div>

* Enter the keystore password.

<div align="center"><img src="/files/tBzBxVdwp4Hst6SnQmu0" alt="" width="1400"></div>

* Enter the private key password.

<div align="center"><img src="/files/6DNLZJVvcVj8JaTax7tH" alt="" width="1400"></div>

*If the private key input is not entered in the above step, then user will get the notification mentioned in the screenshot below. In this case, the private key password will be considered same as keystore password.*

<div align="center"><img src="/files/bPsV7uzidyOZv7JbqRwG" alt="" width="1400"></div>

* It will update keystore and private key passwords in OpsHub application in the encrypted format.

<div align="center"><img src="/files/zuvSQWhBhJm5eoiEcsUz" alt="" width="1400"></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/manage/advanced-utilities/change-keystore-and-private-key-passwords.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
