# Where is pem file for non-default identity?

**URL:** <https://forum.dfinity.org/t/where-is-pem-file-for-non-default-identity/22127>\
**Category:** Developers\
**Created:** [August 14, 2023, 2:45pm UTC](https://forum.dfinity.org/t/where-is-pem-file-for-non-default-identity/22127 "2023-08-14T14:45:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dctech](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/dctech/32/10622_2.png) [@dctech](https://forum.dfinity.org/u/dctech)\
**Post date:** [August 14, 2023, 2:45pm UTC](https://forum.dfinity.org/t/where-is-pem-file-for-non-default-identity/22127/1 "2023-08-14T14:45:52Z")

</div>

i use non-default identity for my project. i able to find pem file for default identity under  
/Users/dctech/.config/dfx/identity/default/identity.pem

but no pem file for any non-default identity  
e.g. i created one identity dctech  
there are only identity.json & wallets.json two files under /Users/dctech/.config/dfx/identity/dctech  
the identity.json file looks like  
{  
“hsm”: null,  
“encryption”: null,  
“keyring\_identity\_suffix”: “dctech”  
}

is identity.pem file shared across all identities?

---

<div class="post-metadata">

**Author:** ![psykomal](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/psykomal/32/26693_2.png) [@psykomal](https://forum.dfinity.org/u/psykomal)\
**Post date:** [February 15, 2024, 9:37am UTC](https://forum.dfinity.org/t/where-is-pem-file-for-non-default-identity/22127/2 "2024-02-15T09:37:18Z")

</div>

You need to execute

`dfx identity export identity-name` for the pem

`dfx identity export alice >generated-id.pem` to store it
