# Wg0: Failed to read private key

**URL:** https://discourse.nixos.org/t/wg0-failed-to-read-private-key/31461
**Category:** Help
**Created:** [August 8, 2023, 8:14pm UTC](https://discourse.nixos.org/t/wg0-failed-to-read-private-key/31461 "2023-08-08T20:14:30Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![denisrosca](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/d/898d66/32.png) [@denisrosca](https://discourse.nixos.org/u/denisrosca)
#### Post date: [September 14, 2023, 3:26pm UTC](https://discourse.nixos.org/t/wg0-failed-to-read-private-key/31461/8 "2023-09-14T15:26:46Z")

</div>

@spalf I’m having the same problems with the key.  
Could you explain exactly what the permissions need to be on the file/parent-directory?

Thank you.

---

_[View the full topic](https://discourse.nixos.org/t/wg0-failed-to-read-private-key/31461)._
