1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 11:06:00 +02:00

in-toto-sign: add page

This commit is contained in:
Furkan 2021-10-20 21:52:54 +03:00 committed by Axel Navarro
parent cf48eaba7f
commit fdf906e609

View file

@ -0,0 +1,24 @@
# in-toto-sign
> Sign in-toto link or layout metadata or verify their signatures.
> More information: <https://in-toto.readthedocs.io/en/latest/command-line-tools/in-toto-sign.html>.
- Sign 'unsigned.layout' with two keys and write it to 'root.layout':
`in-toto-sign -f {{unsigned.layout}} -k {{priv_key1}} {{priv_key2}} -o {{root.layout}}`
- Replace signature in link file and write to default filename:
`in-toto-sign -f {{package.2f89b927.link}} -k {{priv_key}}`
- Verify a layout signed with 3 keys:
`in-toto-sign -f {{root.layout}} -k {{pub_key0}} {{pub_key1}} {{pub_key2}} --verify`
- Sign a layout with the default GPG key in default GPG keyring:
`in-toto-sign -f {{root.layout}} --gpg`
- Verify a layout with a GPG key identified by keyid '...439F3C2':
`in-toto-sign -f {{root.layout}} --verify --gpg {{...439F3C2}}`