diff --git a/SIGNING.md b/SIGNING.md index d18eff0f..e8cc2871 100644 --- a/SIGNING.md +++ b/SIGNING.md @@ -42,6 +42,41 @@ Upload both your package and the matching `.sig`. Now when binstall downloads your packages, it will also download the `.sig` file and use the `pubkey` in the Cargo.toml to verify the signature. If the signature has a trusted comment, it will print it at install time. +`minisign` and `rsign2` by default prompt for a password when generating a keypair and signing, which can hinder automation. + +You can: + - Pass `-W` to `minisign` or `rsign2` to generate a password-less private key. + NOTE that you also need to pass this when signing. + - When signing using `minisign`, it reads from stdin for password so you could use + shell redirect to pass the password. + - Use [`expect`] to pass password to `rsign2` (since it reads `/dev/tty` for password): + For generating private key: + ```bash + expect <