# Error! options.app\_secret must be in PEM format

**URL:** <https://community.auth0.com/t/error-options-app-secret-must-be-in-pem-format/47861>\
**Category:** Get Help\
**Tags:** apple, sign-in-with-apple, apple-sign-in\
**Created:** [August 12, 2020, 1:13pm UTC](https://community.auth0.com/t/error-options-app-secret-must-be-in-pem-format/47861 "2020-08-12T13:13:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lily](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lily/32/12931_2.png) [@lily](https://community.auth0.com/u/lily)\
**Post date:** [August 12, 2020, 1:13pm UTC](https://community.auth0.com/t/error-options-app-secret-must-be-in-pem-format/47861/1 "2020-08-12T13:13:05Z")

</div>

I followed [this](https://auth0.com/docs/connections/apple-siwa/set-up-apple?_ga=2.124377545.2119812366.1597221703-2116868789.1595494179) link for getting the client secret but when I pasted the client secret in Auth0 it throws an error: **Error! options.app\_secret must be in PEM format**

I found this issue was already raised but it was closed and the solution does not work.

---

<div class="post-metadata">

**Author:** ![lily](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lily/32/12931_2.png) [@lily](https://community.auth0.com/u/lily)\
**Post date:** [August 13, 2020, 9:31am UTC](https://community.auth0.com/t/error-options-app-secret-must-be-in-pem-format/47861/2 "2020-08-13T09:31:29Z")

</div>

We found the solution, we copied the whole content from the PEM file.

Refer the sample PEM format below:

```
-----BEGIN PRIVATE KEY-----
MIJSasdasdfasdMBdssByqGSM49AgEGCsdsfs49AwEHBG0wawIBAQQg8xq9Fu9LNeQ9m1vE
cZH1sopAHJllasdfasdfasdfkajsfhlkasjdfhlkjashdfljkhasdljkfhdsfakjshfljhkjhlkkjhjfjfjfjfjfjfjo/uPQFtigbOAS4eFNRLOgqFM7XjBMHn/+q+h
-----END PRIVATE KEY-----

```

Hope this helps.
