US English (US)
BS Bosnian

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
English (US)
US English (US)
BS Bosnian
  • Home
  • Settings
  • SSL

Troubleshooting: Private Key Is Not Valid

Learn how to identify and resolve issues with invalid private keys

Written by Amanda Helpjuice

Updated at August 8th, 2025, by Ivanna Parra

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Users Accessibility New to Helpjuice? Start Here Content Management Multiple Languages/Translations & Localization Multilingual Knowledge Bases Analytics Video Tutorials
  • Article Editor
  • Customization
    Customization Guides
  • Billing / Subscription
  • Authentication
  • Swifty AI
    Swifty AI Chatbot Swifty AI Helpbar
  • API V2
  • API V3 and Webhooks
  • Pricing
  • What's New
  • Settings
    User Settings User Behavior Knowledge Base Settings Custom Domain SSL
+ More

Table of Contents

Ensure the Correct Private Key File Verify the Certificate Concatenation Remove Blank Lines Check DNS Settings

If you’ve attempted to upload your certificate and private key but encountered an error indicating that the Private Key is not valid, you may need to double-check both the files and configuration. Follow the steps below to troubleshoot this issue.

Ensure the Correct Private Key File

When generating a Certificate Signing Request (CSR), a Private Key is created at the same time. You will send the CSR to your certificate provider and retain the private key. Once you receive the certificate from your provider, you must upload both the certificate and the original private key that was generated.

Make sure that you are using the correct private key file associated with the certificate.

Verify the Certificate Concatenation

To ensure that the certificate is valid, it must be concatenated in the proper order within the bundle file. The certificates should appear in the following sequence:

-----BEGIN CERTIFICATE-----
(Your Primary SSL certificate)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Intermediate certificate)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Root certificate)
-----END CERTIFICATE-----

Check that all certificates are placed in the correct order and properly formatted.

Remove Blank Lines

Be sure there are no extra blank lines between each certificate within the bundle file. Blank lines can cause invalid syntax, leading to the certificate failing validation.

Check DNS Settings

Finally, verify that your DNS settings are properly configured. Incorrect DNS records can also result in certificate errors. For detailed guidance on setting up DNS records, refer to this article.


By following these steps, you should be able to resolve the “Private Key is not valid” error. If the problem persists, consider reaching out to your certificate provider for further assistance.

 

invalid key troubleshooting error private key certificate

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How To Set Up Custom Domains
  • SSL Certificates and LetsEncrypt
  • Troubleshooting: Too Many Redirects
  • How to Run Your Knowledge Base on a Subdirectory (e.g. /help)

Copyright © 2025 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand