# How to Generate a SAML Certificate with OpenSSL on Elastic Cloud?

**URL:** <https://discuss.elastic.co/t/how-to-generate-a-saml-certificate-with-openssl-on-elastic-cloud/345090>\
**Category:** Elasticsearch\
**Created:** [October 16, 2023, 10:09am UTC](https://discuss.elastic.co/t/how-to-generate-a-saml-certificate-with-openssl-on-elastic-cloud/345090 "2023-10-16T10:09:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [October 16, 2023, 10:09am UTC](https://discuss.elastic.co/t/how-to-generate-a-saml-certificate-with-openssl-on-elastic-cloud/345090/1 "2023-10-16T10:09:33Z")

</div>

Hi Community,

I'm working on configuring SAML authentication for my Elastic Stack deployment, and I've come across the need to generate a SAML certificate and key. The [documentation](https://www.elastic.co/guide/en/cloud/current/ec-sign_outgoing_saml_message.html) suggests using the openssl req command, but I'm not sure where and how to run this command on Elastic Cloud.

openssl req -new -x509 -days 3650 -nodes -sha256 -out saml-sign.crt -keyout saml-sign.key

Could someone please explain how to use openssl to create a SAML certificate for Elastic Stack? Specifically, I would like to know where to run it, whether it's on a Linux terminal, a virtual machine, or elsewhere.

Thank you in advance.

Best regards

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 18, 2023, 6:10am UTC](https://discuss.elastic.co/t/how-to-generate-a-saml-certificate-with-openssl-on-elastic-cloud/345090/2 "2023-10-18T06:10:25Z")

</div>

You would run that on your own infrastructure - the examples in that doc assume you are using a linux terminal.

---

<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:** [November 15, 2023, 6:10am UTC](https://discuss.elastic.co/t/how-to-generate-a-saml-certificate-with-openssl-on-elastic-cloud/345090/3 "2023-11-15T06:10:54Z")

</div>

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