> For the complete documentation index, see [llms.txt](https://docs.opshub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opshub.com/v7.235/manage/advanced-utilities/certificate-private-key-password-encryptor-utility.md).

# 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.OIM</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="https://2991045788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZP5NKWmaVDSsfZr38xUR%2Fuploads%2Fgit-blob-a4038d913b08cbdbe611bd2e7cb6ae9e435c8f1b%2FCertUtil1.png?alt=media" alt="" width="1300"></div>

* Enter the certificate alias as shown below:

<div align="center"><img src="https://2991045788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZP5NKWmaVDSsfZr38xUR%2Fuploads%2Fgit-blob-cd87b2e75e53919d2000b4a0ca41d5c4271aad79%2FCertUtil2.png?alt=media" alt="" width="1300"></div>

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

<div align="center"><img src="https://2991045788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZP5NKWmaVDSsfZr38xUR%2Fuploads%2Fgit-blob-9ea73a9b66825a67ee86abbbc5bc3dd2bb1fea03%2FCertUtil3.png?alt=media" 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="https://2991045788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZP5NKWmaVDSsfZr38xUR%2Fuploads%2Fgit-blob-3fd28e59b7fd38c97736b35926bea8b6e380ebe5%2FCertUtil4.png?alt=media" 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="https://2991045788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZP5NKWmaVDSsfZr38xUR%2Fuploads%2Fgit-blob-3c35d10b24aa4886627c5bc8d876611bdfab0baf%2FCertUtil5.png?alt=media" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opshub.com/v7.235/manage/advanced-utilities/certificate-private-key-password-encryptor-utility.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
