# Error in case of encrypted SAML Assertion

**URL:** <https://devforum.okta.com/t/error-in-case-of-encrypted-saml-assertion/4240>\
**Category:** SAML\
**Created:** [February 18, 2019, 1:38pm UTC](https://devforum.okta.com/t/error-in-case-of-encrypted-saml-assertion/4240 "2019-02-18T13:38:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anjali](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Anjali](https://devforum.okta.com/u/Anjali)\
**Post date:** [February 18, 2019, 1:38pm UTC](https://devforum.okta.com/t/error-in-case-of-encrypted-saml-assertion/4240/1 "2019-02-18T13:38:21Z")

</div>

Getting following error  
**the saml2assertion cannot specify externalencryptedkeys unless encryptingcredentials are also specified.**

while enable assertion encryption in application. Can someone please guide me what configuration I wrong so that I am getting both external encryptionkey and encryption credential.

Thanks in afdvance.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 7:01pm UTC](https://devforum.okta.com/t/error-in-case-of-encrypted-saml-assertion/4240/2 "2024-02-12T19:01:40Z")

</div>

Closed on February 12, 2024, 7:01pm UTC


