# How to store PEM/P8 key in Secrets?

**URL:** <https://community.fly.io/t/how-to-store-pem-p8-key-in-secrets/15784>\
**Category:** Questions / Help\
**Tags:** login-only\
**Created:** [October 7, 2023, 3:39pm UTC](https://community.fly.io/t/how-to-store-pem-p8-key-in-secrets/15784 "2023-10-07T15:39:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [October 7, 2023, 4:47pm UTC](https://community.fly.io/t/how-to-store-pem-p8-key-in-secrets/15784/2 "2023-10-07T16:47:10Z")

</div>

> [@tito](#):
>
> Is there a way to make it work using secrets?

If you can use a base64 encoded secret, then yes.

See this discussion: [How are you managing cert files with Fly? - #16 by michael](https://community.fly.io/t/2984/16)

---

_[View the full topic](https://community.fly.io/t/how-to-store-pem-p8-key-in-secrets/15784)._
