How does signing actually work? #95
-
I don't understand signing part at all. I read Roles and metadata section in TUF website but I still don't understand the process. When / what / how should I sign metadata files? This is what I do:
I use tufup |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
First let's step back a little and address "Why" you should sign metadata files Why?Basically, As with anything downloaded from "the internet", there is a trust issue here: You should only run/install/use downloaded files if you trust the source. Now, the signed metadata files are a means to establish this trust: The metadata files contain information about the "update" files that are available for download, and allows the client to verify the integrity and the authenticity of the downloaded files. The metadata files themselves are also downloaded from the internet, so they are signed to establish their authenticity. The source of the chain of trust is the The best If want to know how all this works in detail, have a look at the detailed client workflow in the TUF specification. Any questions related to this should be directed to When?A metadata file must be (re-)signed whenever it is created, changed, or expired. For example:
What? / How?Under the hood, the metadata files are created and signed using All |
Beta Was this translation helpful? Give feedback.
-
The " signed by 0/1 keys" error can have several causes. Have a look at 1 and 2, for example. Did you try the tufup-example app? Please follow the steps outlined in the readme there. You can also have a look at the example app's powershell script, which automates the steps involved in a complete update cycle. |
Beta Was this translation helpful? Give feedback.
-
@dennisvang I'm hitting what looks to be a similar issue and I cannot for the life of me figure out a way to get this working. Everything was running fine and then when I tried to shift to encrypted keys everything went wrong. Now backing out and using a fresh clone of tufup-example-master I'm still unable to get past the "Cannot refresh metadata: timestamp was signed by 0/1 keys" warning: no updates are ever found and the application won't ever update itself. What's strangest is that the "no signature for keyid" message is not for any keyid that's actually being used... I can't figure out where that keyid is living or why it's being used instead of the keys generated in repo_init.py. Blowing away the entire temp_my_app folder with the keystore and repository and running repo_init.py to make new ones produces the same message with the same keyid. Is there some other path on disk that keys could live that I need to clear out to reset everything and get this working again?
|
Beta Was this translation helpful? Give feedback.
First let's step back a little and address "Why" you should sign metadata files
Why?
Basically,
tufup
downloads files from "the internet" to the computer that your app is running on, and then "installs" them.As with anything downloaded from "the internet", there is a trust issue here: You should only run/install/use downloaded files if you trust the source.
Now, the signed metadata files are a means to establish this trust: The metadata files contain information about the "update" files that are available for download, and allows the client to verify the integrity and the authenticity of the downloaded files. The metadata files themse…