# Certificate validation for SAML

**URL:** <https://devforum.okta.com/t/certificate-validation-for-saml/578>\
**Category:** SAML\
**Tags:** saml\
**Created:** [October 13, 2017, 6:57pm UTC](https://devforum.okta.com/t/certificate-validation-for-saml/578 "2017-10-13T18:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xwang](https://avatars.discourse-cdn.com/v4/letter/x/ac8455/32.png) [@xwang](https://devforum.okta.com/u/xwang)\
**Post date:** [October 13, 2017, 6:57pm UTC](https://devforum.okta.com/t/certificate-validation-for-saml/578/1 "2017-10-13T18:57:01Z")

</div>

As SP(my web application) who get IDP(Okta) SAML response, how do I validate the certificate? I could not find any document that describe how to setup the certificate validation. Do I need to download it from okta and configure it to be used in metadata?

I would assume this is very common requirement, assuming in my python saml client, I specify “want\_response\_signed”: True.

my understanding is that the certificate(public key) that is used to sign the response will be also included in the SAML response, that is to be used to make sure the response is not compromised by others, but I also need to make sure the response is really coming from okta.

---

<div class="post-metadata">

**Author:** ![Govner](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/govner/32/1099_2.png) [@Govner](https://devforum.okta.com/u/Govner)\
**Post date:** [April 24, 2019, 11:56am UTC](https://devforum.okta.com/t/certificate-validation-for-saml/578/2 "2019-04-24T11:56:11Z")

</div>

Download the Okta public key from the IdP metadata link on signon tab of Okta application

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 8:01pm UTC](https://devforum.okta.com/t/certificate-validation-for-saml/578/3 "2024-01-17T20:01:32Z")

</div>

Closed on January 17, 2024, 8:01pm UTC

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