git-secret/tests/fixtures/gpg
Josh Rabinowitz 525305d985
Issue 527 key with comment (#528)
* add key fixture with no email, and 2 word comment
* tests for key without email and with comment
* handle comments in public key uids
* fix tests, you have to use email address
* fix text
* confirm that email addresses contain an @ symbol
* improve comments about keys/fixtures
2019-09-06 20:21:50 -04:00
..
attacker1@gitsecret.io make sure email addresses used with 'tell' and 'killperson' exist in keyring (#267) 2018-09-26 00:08:44 +03:00
user1@gitsecret.io make sure email addresses used with 'tell' and 'killperson' exist in keyring (#267) 2018-09-26 00:08:44 +03:00
user2@gitsecret.io make sure email addresses used with 'tell' and 'killperson' exist in keyring (#267) 2018-09-26 00:08:44 +03:00
user3@gitsecret.io make sure email addresses used with 'tell' and 'killperson' exist in keyring (#267) 2018-09-26 00:08:44 +03:00
user4@gitsecret.io improve testing regarding expired keys and keys with only email addresses (#262) 2018-12-01 08:48:09 -05:00
user5@gitsecret.io Issue 527 key with comment (#528) 2019-09-06 20:21:50 -04:00
README.md Issue 527 key with comment (#528) 2019-09-06 20:21:50 -04:00

== public/private key pairs for test keys

  • user1 and user2 are normal gpg key sets for user1@gitsecret.io and user2@gitsecret.io. They have the passphrases 'user1pass' and 'user2pass', respectively. user1 is not currently used.

  • user3 was created by gpg --quick-generate user3@gitsecret.io and therefore has only an email associated with it (no username).
    It has the passphrase 'user3pass' as the tests expect. This user was created to fix https://github.com/sobolevn/git-secret/issues/227 , "keys with no info but the email address not recognized by whoknows"

  • user4 was created with gpg --gen-key, using the name 'user4' and the email address user4@gitsecret.io. As the tests expect, it has the passphrase 'user4pass'.

    It is also set to expire on 2018-09-23. To make keys expire, I used the gpg --edit-key user@email command's expiry function.

    The public and private key for user4 were exported with gpg --export --armor user4 > tests/fixtures/gpg/user4/public.key and gpg --export-secret-keys --armor user4 > tests/fixtures/gpg/user4/private.key

  • user5 was created for issue #527 using gpg --full-generate-key. with name 'user5', no email address, the comment 'comment comment', and the passphrase 'user5pass'. Keys were exported as above.