# Certificate Private Key Password Encryptor Utility

If multiple certificates are imported into the Keystore, and the certificates have different private key passwords, this utility can be used to create a `cacerts_config.properties` file having all the certificate alias names and their passwords in encrypted format. The information in this file would be used to load certificates from Keystore.

Follow the steps given below for creating/updating the `cacerts_config.properties` file:

* 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 Certificate Passwords Utility.zip`.
* Run `OpsHubCertificatePasswordsUtility.bat` for Windows system. In case of Linux system, run `OpsHubCertificatePasswordsUtility.sh`.
* Enter the path for OpsHub Installation Directory.

<div align="center"><img src="/files/Lktb3hTFOCkB449yADjv" alt="" width="1300"></div>

* Enter the certificate alias as shown below:

<div align="center"><img src="/files/Rsz8QjHjDhDc9buBzox8" alt="" width="1300"></div>

* Enter the private key password of the certificate with the same alias as shown below:

<div align="center"><img src="/files/ZFrN8A8LvbD3YS8CGHNj" alt="" width="1300"></div>

* Type "y" if more alias entries need to be added. The utility will prompt for alias name and password again. Type "n" if no more entries are required.

<div align="center"><img src="/files/p50fjLIEkSKIZ1nWB8m2" alt="" width="1300"></div>

* The utility will create `cacerts_config.properties` file with certificate alias names and their corresponding passwords in encrypted format.

<div align="center"><img src="/files/Q5BpnvbEg9CE9mQbKExX" alt="" width="1300"></div>

* If the `cacerts_config.properties` file already exists, then this utility will not create this file, it will just replace the password for the existing alias or add the new alias and encrypted password in the existing `cacerts_config.properties`.


---

# 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/certificate-private-key-password-encryptor-utility.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.
