Skip to content

Commit fc65fae

Browse files
committed
feat(flox-store): add instructions for signing key generation
1 parent 20fb23a commit fc65fae

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

docs/cookbook/publish/flox-store.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,24 @@ catalog-util store --catalog "<my-catalog-name>" set --store-config '{ "store-ty
9090
You'll note that it's possible to set the ingress and egress URIs to the same
9191
value, if you wish to do so.
9292

93-
## Set Signing Key When Publishing Your Package
93+
## Create and Set a Signing Key
9494

95-
At this point, you should have an appropriately Catalog Store to which you can
96-
publish your own software via the `flox publish` command. The last thing you
97-
need to worry about is configuring a signing key for publishing packages:
95+
At this point, you should have an appropriately configured Catalog Store
96+
to which you can publish your own software via the `flox publish` command.
97+
The last thing you need to worry about is configuring a signing key
98+
for publishing packages.
99+
100+
The first step in this process is generating a key:
101+
102+
sh```
103+
nix key generate-secret --key-name <my-key-name> > <my-key-name>.key
104+
nix key convert-secret-to-public < <my-key-name>.key
105+
```
106+
Once you've generated the key, you can configure Flox to sign the packages
107+
you publish with that key:
98108
99109
```sh
100-
flox config --set publish.signing_key "</path/to/signing-key>"
110+
flox config --set publish.signing_key "</path/to/my-key-name>.key"
101111
```
102112

103113
Now you're ready to use Flox publish your own software to the Catalog Store

0 commit comments

Comments
 (0)