1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/in-toto-sign.md
2021-10-20 16:05:28 -03:00

24 lines
835 B
Markdown

# 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}}`