{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19","id":97422994,"html_url":"https://github.com/dadoug/gneasy-genkey/pull/19","diff_url":"https://github.com/dadoug/gneasy-genkey/pull/19.diff","patch_url":"https://github.com/dadoug/gneasy-genkey/pull/19.patch","issue_url":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/19","number":19,"state":"closed","locked":false,"title":"Add support for GnuPG 2.1 ('modern') and MacPorts","user":{"login":"codebrewer","id":350958,"avatar_url":"https://avatars.githubusercontent.com/u/350958?v=3","gravatar_id":"","url":"https://api.github.com/users/codebrewer","html_url":"https://github.com/codebrewer","followers_url":"https://api.github.com/users/codebrewer/followers","following_url":"https://api.github.com/users/codebrewer/following{/other_user}","gists_url":"https://api.github.com/users/codebrewer/gists{/gist_id}","starred_url":"https://api.github.com/users/codebrewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebrewer/subscriptions","organizations_url":"https://api.github.com/users/codebrewer/orgs","repos_url":"https://api.github.com/users/codebrewer/repos","events_url":"https://api.github.com/users/codebrewer/events{/privacy}","received_events_url":"https://api.github.com/users/codebrewer/received_events","type":"User","site_admin":false},"body":"The main change in this commit is the addition of support for GnuPG 2.1 (_aka_ 'modern') while retaining the original behaviour with GnuPG 2.0 (_aka_ 'classic'). A minor change is support for running the script under MacPorts on OS X / macOS.\r\n\r\nIn comparison with v2.0, using v2.1:\r\n\r\n- requires `--full-gen-key` rather than `--gen-key` to give access to the full key generation options;\r\n- automatically generates a revocation certificate when generating a master key pair;\r\n- includes keygrip information in key listings;\r\n- simplifies the removal of a private key by turning it into a single file deletion operation (with the filename being based on the keygrip).\r\n\r\nThe script now parses the output of `gpg2 --version` to determine whether v2.0 or v2.1 is being used, sets the variable `EGK_GPGMODERN` to `false` or `true` and the variable `EGK_GPGGENKEY` to `--gen-key` or `--full-gen-key` respectively and uses the value of `EGK_GPGMODERN` to control the way various operations that differ between v2.0 and v2.1 are performed.\r\n\r\nKeygrip information (which is present with v2.1 key listings) is parsed from the colon-delimited key listings and used in two ways:\r\n\r\n- it's included in the YAML public key output; and\r\n- used to identify the master private key file (if the master private key is to be removed).\r\n\r\nRevocation certificate generation is skipped with v2.1 since one is automatically created along with the master key pair.\r\n\r\nSecurely deleting files accounts for MacPorts installing GNU `shred` as `gshred`.\r\n\r\nThe script has been tested with GnuPG 2.0.26 on Debian 8.6, GnuPG 2.1.16 on Raspbian 'testing' and GnuPG 2.1.16 (provided by MacPorts) on macOS 10.12.1.","created_at":"2016-12-10T12:09:03Z","updated_at":"2016-12-14T11:25:59Z","closed_at":"2016-12-14T11:25:59Z","merged_at":"2016-12-14T11:25:59Z","merge_commit_sha":"95703ab62577fb50ac1735af22bb114c774a81f4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19/commits","review_comments_url":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19/comments","review_comment_url":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/19/comments","statuses_url":"https://api.github.com/repos/dadoug/gneasy-genkey/statuses/2b7f7fb234ab78c4c193771cbefdb52f2cded3a5","head":{"label":"codebrewer:feature/support-gnupg-v2.1.x-and-macports","ref":"feature/support-gnupg-v2.1.x-and-macports","sha":"2b7f7fb234ab78c4c193771cbefdb52f2cded3a5","user":{"login":"codebrewer","id":350958,"avatar_url":"https://avatars.githubusercontent.com/u/350958?v=3","gravatar_id":"","url":"https://api.github.com/users/codebrewer","html_url":"https://github.com/codebrewer","followers_url":"https://api.github.com/users/codebrewer/followers","following_url":"https://api.github.com/users/codebrewer/following{/other_user}","gists_url":"https://api.github.com/users/codebrewer/gists{/gist_id}","starred_url":"https://api.github.com/users/codebrewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebrewer/subscriptions","organizations_url":"https://api.github.com/users/codebrewer/orgs","repos_url":"https://api.github.com/users/codebrewer/repos","events_url":"https://api.github.com/users/codebrewer/events{/privacy}","received_events_url":"https://api.github.com/users/codebrewer/received_events","type":"User","site_admin":false},"repo":{"id":74830001,"name":"gneasy-genkey","full_name":"codebrewer/gneasy-genkey","owner":{"login":"codebrewer","id":350958,"avatar_url":"https://avatars.githubusercontent.com/u/350958?v=3","gravatar_id":"","url":"https://api.github.com/users/codebrewer","html_url":"https://github.com/codebrewer","followers_url":"https://api.github.com/users/codebrewer/followers","following_url":"https://api.github.com/users/codebrewer/following{/other_user}","gists_url":"https://api.github.com/users/codebrewer/gists{/gist_id}","starred_url":"https://api.github.com/users/codebrewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebrewer/subscriptions","organizations_url":"https://api.github.com/users/codebrewer/orgs","repos_url":"https://api.github.com/users/codebrewer/repos","events_url":"https://api.github.com/users/codebrewer/events{/privacy}","received_events_url":"https://api.github.com/users/codebrewer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codebrewer/gneasy-genkey","description":"Easy GnuPG key generation tool.","fork":true,"url":"https://api.github.com/repos/codebrewer/gneasy-genkey","forks_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/forks","keys_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/teams","hooks_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/hooks","issue_events_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/issues/events{/number}","events_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/events","assignees_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/assignees{/user}","branches_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/branches{/branch}","tags_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/tags","blobs_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/git/refs{/sha}","trees_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/statuses/{sha}","languages_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/languages","stargazers_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/stargazers","contributors_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/contributors","subscribers_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/subscribers","subscription_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/subscription","commits_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/commits{/sha}","git_commits_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/git/commits{/sha}","comments_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/comments{/number}","issue_comment_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/issues/comments{/number}","contents_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/contents/{+path}","compare_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/merges","archive_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/downloads","issues_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/issues{/number}","pulls_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/pulls{/number}","milestones_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/milestones{/number}","notifications_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/labels{/name}","releases_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/releases{/id}","deployments_url":"https://api.github.com/repos/codebrewer/gneasy-genkey/deployments","created_at":"2016-11-26T14:19:04Z","updated_at":"2016-11-26T14:19:06Z","pushed_at":"2016-12-10T11:48:11Z","git_url":"git://github.com/codebrewer/gneasy-genkey.git","ssh_url":"git@github.com:codebrewer/gneasy-genkey.git","clone_url":"https://github.com/codebrewer/gneasy-genkey.git","svn_url":"https://github.com/codebrewer/gneasy-genkey","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dadoug:master","ref":"master","sha":"be51ad87696fbff1cdd88aac440db9335aae876b","user":{"login":"dadoug","id":6627796,"avatar_url":"https://avatars.githubusercontent.com/u/6627796?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoug","html_url":"https://github.com/dadoug","followers_url":"https://api.github.com/users/dadoug/followers","following_url":"https://api.github.com/users/dadoug/following{/other_user}","gists_url":"https://api.github.com/users/dadoug/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoug/subscriptions","organizations_url":"https://api.github.com/users/dadoug/orgs","repos_url":"https://api.github.com/users/dadoug/repos","events_url":"https://api.github.com/users/dadoug/events{/privacy}","received_events_url":"https://api.github.com/users/dadoug/received_events","type":"User","site_admin":false},"repo":{"id":34155949,"name":"gneasy-genkey","full_name":"dadoug/gneasy-genkey","owner":{"login":"dadoug","id":6627796,"avatar_url":"https://avatars.githubusercontent.com/u/6627796?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoug","html_url":"https://github.com/dadoug","followers_url":"https://api.github.com/users/dadoug/followers","following_url":"https://api.github.com/users/dadoug/following{/other_user}","gists_url":"https://api.github.com/users/dadoug/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoug/subscriptions","organizations_url":"https://api.github.com/users/dadoug/orgs","repos_url":"https://api.github.com/users/dadoug/repos","events_url":"https://api.github.com/users/dadoug/events{/privacy}","received_events_url":"https://api.github.com/users/dadoug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dadoug/gneasy-genkey","description":"Easy GnuPG key generation tool.","fork":false,"url":"https://api.github.com/repos/dadoug/gneasy-genkey","forks_url":"https://api.github.com/repos/dadoug/gneasy-genkey/forks","keys_url":"https://api.github.com/repos/dadoug/gneasy-genkey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dadoug/gneasy-genkey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dadoug/gneasy-genkey/teams","hooks_url":"https://api.github.com/repos/dadoug/gneasy-genkey/hooks","issue_events_url":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/events{/number}","events_url":"https://api.github.com/repos/dadoug/gneasy-genkey/events","assignees_url":"https://api.github.com/repos/dadoug/gneasy-genkey/assignees{/user}","branches_url":"https://api.github.com/repos/dadoug/gneasy-genkey/branches{/branch}","tags_url":"https://api.github.com/repos/dadoug/gneasy-genkey/tags","blobs_url":"https://api.github.com/repos/dadoug/gneasy-genkey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dadoug/gneasy-genkey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dadoug/gneasy-genkey/git/refs{/sha}","trees_url":"https://api.github.com/repos/dadoug/gneasy-genkey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dadoug/gneasy-genkey/statuses/{sha}","languages_url":"https://api.github.com/repos/dadoug/gneasy-genkey/languages","stargazers_url":"https://api.github.com/repos/dadoug/gneasy-genkey/stargazers","contributors_url":"https://api.github.com/repos/dadoug/gneasy-genkey/contributors","subscribers_url":"https://api.github.com/repos/dadoug/gneasy-genkey/subscribers","subscription_url":"https://api.github.com/repos/dadoug/gneasy-genkey/subscription","commits_url":"https://api.github.com/repos/dadoug/gneasy-genkey/commits{/sha}","git_commits_url":"https://api.github.com/repos/dadoug/gneasy-genkey/git/commits{/sha}","comments_url":"https://api.github.com/repos/dadoug/gneasy-genkey/comments{/number}","issue_comment_url":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/comments{/number}","contents_url":"https://api.github.com/repos/dadoug/gneasy-genkey/contents/{+path}","compare_url":"https://api.github.com/repos/dadoug/gneasy-genkey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dadoug/gneasy-genkey/merges","archive_url":"https://api.github.com/repos/dadoug/gneasy-genkey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dadoug/gneasy-genkey/downloads","issues_url":"https://api.github.com/repos/dadoug/gneasy-genkey/issues{/number}","pulls_url":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls{/number}","milestones_url":"https://api.github.com/repos/dadoug/gneasy-genkey/milestones{/number}","notifications_url":"https://api.github.com/repos/dadoug/gneasy-genkey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dadoug/gneasy-genkey/labels{/name}","releases_url":"https://api.github.com/repos/dadoug/gneasy-genkey/releases{/id}","deployments_url":"https://api.github.com/repos/dadoug/gneasy-genkey/deployments","created_at":"2015-04-18T06:56:49Z","updated_at":"2016-10-28T12:49:04Z","pushed_at":"2016-12-14T11:26:00Z","git_url":"git://github.com/dadoug/gneasy-genkey.git","ssh_url":"git@github.com:dadoug/gneasy-genkey.git","clone_url":"https://github.com/dadoug/gneasy-genkey.git","svn_url":"https://github.com/dadoug/gneasy-genkey","homepage":null,"size":71,"stargazers_count":37,"watchers_count":37,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":10,"forks":8,"open_issues":10,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19"},"html":{"href":"https://github.com/dadoug/gneasy-genkey/pull/19"},"issue":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/19"},"comments":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/dadoug/gneasy-genkey/statuses/2b7f7fb234ab78c4c193771cbefdb52f2cded3a5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dadoug","id":6627796,"avatar_url":"https://avatars.githubusercontent.com/u/6627796?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoug","html_url":"https://github.com/dadoug","followers_url":"https://api.github.com/users/dadoug/followers","following_url":"https://api.github.com/users/dadoug/following{/other_user}","gists_url":"https://api.github.com/users/dadoug/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoug/subscriptions","organizations_url":"https://api.github.com/users/dadoug/orgs","repos_url":"https://api.github.com/users/dadoug/repos","events_url":"https://api.github.com/users/dadoug/events{/privacy}","received_events_url":"https://api.github.com/users/dadoug/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":108,"deletions":32,"changed_files":2}}
{"actor":{"display_login":"dadoug"}}