# Secret Key Reset Utility

This utility regenerates Secret Key for application. This can be used in following cases:

* Secret Key is lost.
* Secret Key has been tampered.
* User wants to change secret key for application.

Please follow below given steps for execution of this utility:

* Stop OpsHub Server/ Service before execution of this utility.
* Go to `<OpsHub Installation Folder>/Other_Resources/Resources`.
* Unzip `OpsHub Secret key reset utility.zip`.
* Execute `OpsHubSecretKeyResetUtility.bat` / `OpsHubSecretKeyResetUtility.sh` for Windows/Linux respectively.
* Enter path for OpsHub Installation Directory.

<div align="center"><img src="/files/G30lfxO1k6TeNYdFsZYL" alt="" width="1000"></div>

* Enter new location for security. (`opshub.key` should not be available on the same location).

<div align="center"><img src="/files/Rg6DnYnQytExlN3Qz1lC" alt="" width="1000"></div>

* Select Data Encryption algorithm. By default, AES (128) is selected.

<div align="center"><img src="/files/ql0ODH4QLE8Nfl35L8OL" alt="" width="1000"></div>

* Provide password for database.

<div align="center"><img src="/files/Ct7YyMWY59EcsRnsbmjm" alt="" width="1000"></div>

* This would generate new key at specified location.

<div align="center"><img src="/files/bXJS0Uox8stQpyUl2sUr" alt="" width="1000"></div>

* In case of HTTPS deployment of <code class="expression">space.vars.SITENAME</code>, run [Change Keystore and Private Key passwords utility](/opstech-docs/manage/advanced-utilities/change-keystore-and-private-key-passwords.md) to store the passwords in encrypted form.
* Start OpsHub Server/ Service.
* Re-enter passwords for all configured systems, configured database connections, configured proxy settings and overridden passwords in Advance Configuration of Integration.


---

# 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/regenerate-secret-key.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.
