# How can we provide and configure our own certificate which is in .crt ( base64 ) format

**URL:** <https://discuss.elastic.co/t/how-can-we-provide-and-configure-our-own-certificate-which-is-in-crt-base64-format/314073>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 9, 2022, 3:12pm UTC](https://discuss.elastic.co/t/how-can-we-provide-and-configure-our-own-certificate-which-is-in-crt-base64-format/314073 "2022-09-09T15:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil\_earni](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@nikhil\_earni](https://discuss.elastic.co/u/nikhil_earni)\
**Post date:** [September 9, 2022, 3:12pm UTC](https://discuss.elastic.co/t/how-can-we-provide-and-configure-our-own-certificate-which-is-in-crt-base64-format/314073/1 "2022-09-09T15:12:50Z")

</div>

I am building the Elasticsearch from scratch.

I changed the passkey using the below lines....  
/bin/elasticsearch-keystore add xpack.security.http.ssl.keystore.secure\_password

/bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure\_password

I am getting the below error...

error: bad space padding can be caused due to incorrect private key

help me in resolving this thing...

Thanks & regards  
email: [earni.nikhil@vfirst.com](mailto:earni.nikhil@vfirst.com)

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [September 11, 2022, 11:53pm UTC](https://discuss.elastic.co/t/how-can-we-provide-and-configure-our-own-certificate-which-is-in-crt-base64-format/314073/2 "2022-09-11T23:53:57Z")

</div>

Please share full stacktrace, error message and configuration file for troubleshooting.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2022, 11:54pm UTC](https://discuss.elastic.co/t/how-can-we-provide-and-configure-our-own-certificate-which-is-in-crt-base64-format/314073/3 "2022-10-09T23:54:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
