---
title: How to import a custom CA certificate into Hyperglance's truststore (Legacy Docker Guide)
description: How to add a Root CA certificate.  This will fix PKIX errors.
---

[Skip to content](https://support.hyperglance.com/knowledge/how-to-import-a-custom-ca-certificate-into-hyperglances-truststore-legacydocker#main-content)

English

Show submenu for translations

[More support](https://support.hyperglance.com/knowledge/kb-tickets/new?hsLang=en)

![](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=100&height=75&name=hyperglance.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [More support](https://support.hyperglance.com/knowledge/kb-tickets/new)
- [Contact Us](https://www.hyperglance.com/contact/)

[Contact Us](https://www.hyperglance.com/contact/)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Hyperglance Support](https://support.hyperglance.com/knowledge?hsLang=en)
2. [System Administration](https://support.hyperglance.com/knowledge/system-administration?hsLang=en)
3. [Legacy Docker-based deployments](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#legacy-docker-based-deployments)

# How to import a custom CA certificate into Hyperglance's truststore (Legacy Docker Guide)

## This guide will show how to import a root CA certificate into Hyperglance's Java truststore.

Deprecated

This guide is for our legacy Docker-based architecture. [See the latest version.](https://support.hyperglance.com/knowledge/how-to-import-a-custom-ca-certificate-into-hyperglances-truststore?hsLang=en)

Tip

If you are experiencing "PKIX path building failed" errors then it is likely that you need to add your company's root CA certificate to Hyperglance's truststore.

Note

This is not the same as the SSL/TLS server certificate that Hyperglance presents to web browsers. To change that see [\[this article\]](https://support.hyperglance.com/knowledge/how-to-set-a-custom-https-ssl/tls-certificate-legacydocker?hsLang=en)

**STEP BY STEP GUIDE:**

1. 1
   
   Copy your root CA certificate pem file from your local computer to `**/var/lib/data/hyperglance/**` on the Hyperglance system.
2. 2
   
   Gain terminal access (SSH) to the Hyperglance instance/VM to run the following commands...
3. 3
   
   Copy Java's default cacerts file out from the container:
   
   ```
   sudo docker cp wildfly:/opt/wildfly/java/lib/security/cacerts /var/lib/data/hyperglance/
   ```
4. 4
   
   Ensure the file is owned by the wildfly user:
   
   ```
   sudo chown wildfly:wildfly /var/lib/data/hyperglance/cacerts
   ```
5. 5
   
   Sanity check.  List the directory and make sure you see a cacerts file and your root CA certificate and that cacerts is owned by wildfly:
   
   ```
   ls -la /var/lib/data/hyperglance
   ```
6. 6
   
   Add your pem file to the cacerts truststore.
   
   If your root CA file is not called `rootca.pem` then adjust the the `-v` mapping in the command accordingly.
   
   If you are running this multiple times to add more than one cert then give each one a unique alias.
   
   ```
   sudo docker run --rm \  -v "/var/lib/data/hyperglance/cacerts:/tmp/cacerts" \  -v "/var/lib/data/hyperglance/rootca.pem:/tmp/custom.crt" \  --user root --entrypoint bash \  hyperglance/wildfly-v2 -c "\    /opt/wildfly/java/bin/keytool \      -importcert -trustcacerts -noprompt \      -keystore /tmp/cacerts \      -storepass changeit \      -alias hyperglance-user-added-ca \      -file /tmp/custom.crt"
   ```

   After running this command you should see this message:
   
   ```
   Certificate was added to keystore
   ```
7. 7
   
   Add a volume mapping for your cacerts truststore:
   
   ```
   echo "      - /var/lib/data/hyperglance/cacerts:/opt/wildfly/java/lib/security/cacerts:ro" | sudo tee -a /etc/docker-compose.yml
   ```
8. 8
   
   Update the service (Note: Hyperglance will restart and re-ingest all data)
   
   ```
   sudo docker-compose -f /etc/docker-compose.yml up -d
   ```
9. Done: Hyperglance will now be using your new CA root certificate.

- [Getting Started](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#main-content)

    - [Start Here](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#start-here)
    - [Installation & Deployment Guides](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#installation-deployment-guides)
    - [Cloud Marketplaces](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#cloud-marketplaces)
- [Using Hyperglance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#main-content)

    - [Dashboards & Reports](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#dashboards-reports)
    - [Cost Analysis](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-analysis)
    - [Cost Optimization](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-optimization)
    - [Cost Allocation & Budgets](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-allocation-budgets)
    - [Infrastructure Diagrams](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#infrastructure-diagrams)
    - [Search & Rules](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#search-rules)
    - [AI & Agents](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#ai-agents)
    - [Automations](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#automations)
    - [Security & Compliance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#security-compliance)
- [Integrations](https://support.hyperglance.com/knowledge/integrations?hsLang=en#main-content)

    - [AWS](https://support.hyperglance.com/knowledge/integrations?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/integrations?hsLang=en#azure)
    - [GCP](https://support.hyperglance.com/knowledge/integrations?hsLang=en#gcp)
    - [Kubernetes](https://support.hyperglance.com/knowledge/integrations?hsLang=en#kubernetes)
    - [AI Providers](https://support.hyperglance.com/knowledge/integrations?hsLang=en#ai-providers)
    - [Notifications & Ticketing](https://support.hyperglance.com/knowledge/integrations?hsLang=en#notifications-ticketing)
    - [Automations Setup](https://support.hyperglance.com/knowledge/integrations?hsLang=en#automations-setup)
- [System Administration](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#main-content)

    - [Users, Roles & SSO](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#users-roles-sso)
    - [Security & Networking](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#security-networking)
    - [Updates & Maintenance](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#updates-maintenance)
    - [API Keys](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#api-keys)
    - [Legacy Docker-based deployments](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#legacy-docker-based-deployments)
- [Reference](https://support.hyperglance.com/knowledge/reference?hsLang=en#main-content)

    - [Release Notes](https://support.hyperglance.com/knowledge/reference?hsLang=en#release-notes)
    - [Architecture](https://support.hyperglance.com/knowledge/reference?hsLang=en#architecture)
    - [Supported Services](https://support.hyperglance.com/knowledge/reference?hsLang=en#supported-services)
    - [Rule Catalog](https://support.hyperglance.com/knowledge/reference?hsLang=en#rule-catalog)
    - [API Reference](https://support.hyperglance.com/knowledge/reference?hsLang=en#api-reference)
    - [Conformance & Trust](https://support.hyperglance.com/knowledge/reference?hsLang=en#conformance-trust)
- [Pricing & Licensing](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#main-content)

    - [Pricing & Purchasing](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#pricing-purchasing)
    - [Managing Your License](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#managing-your-license)

[![Chill listening crop-3](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=134&height=24&name=hyperglance.png "Chill listening crop-3")](https://www.hyperglance.com/)

2880 Zanker Road, Suite 203, San Jose, CA 95134

<https://www.linkedin.com/company/hyperglance/>

Copyright © 2025 Hyperglance. All rights reserved.