You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the configstore API, I found I was probably expected to use
configstore.File("key.json")
to load the key from the file.
This actually loads the file, I can iterate over the items in the configstore after loading, so it seems to pick up something, but apparently I am not able to get the format right.
Thanks for getting back to me so quickly, this is exactly how it's supposed to be done, works fine for me now. Would you mind a PR that adds this to the docs in here?
I am trying to use
symmecrypt
but am unable to have the keyloader load the key I previously generated.I generated a key (this one is not real and just used for demo purposes) that looks like:
The code in the example here: https://github.com/ovh/symmecrypt#example omits configuring the
configstore
, so using it as is fails withLooking at the
configstore
API, I found I was probably expected to useto load the key from the file.
This actually loads the file, I can iterate over the items in the configstore after loading, so it seems to pick up something, but apparently I am not able to get the format right.
The README in this repository displays sth like:
which when used in my
key.json
fails with a "key not found" error still.When I look at the documentation of
configstore
here: https://github.com/ovh/configstore#item-retrieval-example-101 it instructs me to specify items like:but if I try using sth like this:
in my context, I will still not be able to load the key.
Is there a real-world example of how to load keys from a file here? Is this supposed to be text, JSON, YAML?
The text was updated successfully, but these errors were encountered: