github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_config_gen-keys.md (about) 1 ## cozy-stack config gen-keys 2 3 Generate an key pair for encryption and decryption of credentials 4 5 ### Synopsis 6 7 8 cozy-stack config gen-keys generate a key-pair and save them in the specified path. 9 10 The decryptor key filename is given the ".dec" extension suffix. 11 The encryptor key filename is given the ".enc" extension suffix. 12 13 The files permissions are 0400. 14 15 ``` 16 cozy-stack config gen-keys <filepath> [flags] 17 ``` 18 19 ### Examples 20 21 ``` 22 $ cozy-stack config gen-keys ~/credentials-key 23 keyfiles written in: 24 ~/credentials-key.enc 25 ~/credentials-key.dec 26 27 ``` 28 29 ### Options 30 31 ``` 32 -h, --help help for gen-keys 33 ``` 34 35 ### Options inherited from parent commands 36 37 ``` 38 --admin-host string administration server host (default "localhost") 39 --admin-port int administration server port (default 6060) 40 -c, --config string configuration file (default "$HOME/.cozy.yaml") 41 --host string server host (default "localhost") 42 -p, --port int server port (default 8080) 43 ``` 44 45 ### SEE ALSO 46 47 * [cozy-stack config](cozy-stack_config.md) - Show and manage configuration elements 48