# ECE Self-Signed Cert Error: malformed sequence in RSA private key

**URL:** <https://discuss.elastic.co/t/ece-self-signed-cert-error-malformed-sequence-in-rsa-private-key/368270>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [October 4, 2024, 8:05pm UTC](https://discuss.elastic.co/t/ece-self-signed-cert-error-malformed-sequence-in-rsa-private-key/368270 "2024-10-04T20:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfishback](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rfishback](https://discuss.elastic.co/u/rfishback)\
**Post date:** [October 4, 2024, 8:05pm UTC](https://discuss.elastic.co/t/ece-self-signed-cert-error-malformed-sequence-in-rsa-private-key/368270/1 "2024-10-04T20:05:04Z")

</div>

Hello,

This is a new ECE build that is deployed into AWS. The host is sitting behind a network load balancer listening on 12443/9243 with a \*.domain.com certificate attached.

I can reach both the CloudUI and Proxy UI/Kibana with proper TLS.

I am attempting to replace the default cert that is provided during a new build with a self-signed cert generated on the same host. Every self-signed cert guide I have followed( including [ECE Manage Certificates](https://www.elastic.co/guide/en/cloud-enterprise/3.7/ece-manage-certificates.html) ) Ends with this error when attempting to replace the cert via CloudUI. This same error occurs when attempting to use the CLI.

I have no idea how to proceed further.

**Error:**  
An unknown internal error occurred [malformed sequence in RSA private key]

 ![2024-10-04_16-03-30](https://us1.discourse-cdn.com/elastic/original/3X/1/2/12b535e3cde79828de11e5e7f3fa6ca5f62717a9.png)

**Host Info**  
Operating System: Ubuntu 22.04.5 LTS  
Kernel: Linux 6.8.0-1015-aws  
Architecture: arm64  
Hardware Vendor: Amazon EC2  
Hardware Model: m6g.xlarge

---

<div class="post-metadata">

**Author:** ![CD9820](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@CD9820](https://discuss.elastic.co/u/CD9820)\
**Post date:** [December 22, 2025, 2:56pm UTC](https://discuss.elastic.co/t/ece-self-signed-cert-error-malformed-sequence-in-rsa-private-key/368270/2 "2025-12-22T14:56:39Z")

</div>

Hi, I stumble on the exact same issue with Elastic Cloud Enterprise (hosted on prem). Is there a solution for this problem?
