{"action":"created","comment":{"url":"https://api.github.com/repos/square/certigo/pulls/comments/65769156","id":65769156,"diff_hunk":"@@ -115,6 +116,21 @@ func getCerts(file, format string) ([]*x509.Certificate, error) {\n \t\t\t\tcerts = append(certs, cert)\n \t\t\t}\n \t\t}\n+\tcase \"JKS\":\n+\t\tscanner := bufio.NewReader(os.Stdin)\n+\t\tfmt.Print(\"Enter password: \")\n+\t\tpassword, _ := scanner.ReadString('\\n')\n+\t\tkeyStore, err := jceks.Load(file, []byte(strings.TrimSuffix(password, \"\\n\")))\n+\t\tif err != nil {\n+\t\t\treturn nil, err\n+\t\t}\n+\t\tfor _, certName := range keyStore.ListCerts() {","path":"main.go","position":20,"original_position":20,"commit_id":"aeb0a62d461f8bfe3b808083e4dc86795fed21de","original_commit_id":"6aed39208cc9f3aa86115d122f54618241d32bc2","user":{"login":"csstaub","id":639883,"avatar_url":"https://avatars.githubusercontent.com/u/639883?v=3","gravatar_id":"","url":"https://api.github.com/users/csstaub","html_url":"https://github.com/csstaub","followers_url":"https://api.github.com/users/csstaub/followers","following_url":"https://api.github.com/users/csstaub/following{/other_user}","gists_url":"https://api.github.com/users/csstaub/gists{/gist_id}","starred_url":"https://api.github.com/users/csstaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csstaub/subscriptions","organizations_url":"https://api.github.com/users/csstaub/orgs","repos_url":"https://api.github.com/users/csstaub/repos","events_url":"https://api.github.com/users/csstaub/events{/privacy}","received_events_url":"https://api.github.com/users/csstaub/received_events","type":"User","site_admin":false},"body":"You should also iterate over private key entries, as they have certificates associated with them. ","created_at":"2016-06-03T20:18:20Z","updated_at":"2016-06-03T20:18:20Z","html_url":"https://github.com/square/certigo/pull/32#discussion_r65769156","pull_request_url":"https://api.github.com/repos/square/certigo/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/square/certigo/pulls/comments/65769156"},"html":{"href":"https://github.com/square/certigo/pull/32#discussion_r65769156"},"pull_request":{"href":"https://api.github.com/repos/square/certigo/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/square/certigo/pulls/32","id":72562865,"html_url":"https://github.com/square/certigo/pull/32","diff_url":"https://github.com/square/certigo/pull/32.diff","patch_url":"https://github.com/square/certigo/pull/32.patch","issue_url":"https://api.github.com/repos/square/certigo/issues/32","number":32,"state":"open","locked":false,"title":"Added jceks support. Uses jceks package to parse files.","user":{"login":"christodenny","id":8799784,"avatar_url":"https://avatars.githubusercontent.com/u/8799784?v=3","gravatar_id":"","url":"https://api.github.com/users/christodenny","html_url":"https://github.com/christodenny","followers_url":"https://api.github.com/users/christodenny/followers","following_url":"https://api.github.com/users/christodenny/following{/other_user}","gists_url":"https://api.github.com/users/christodenny/gists{/gist_id}","starred_url":"https://api.github.com/users/christodenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christodenny/subscriptions","organizations_url":"https://api.github.com/users/christodenny/orgs","repos_url":"https://api.github.com/users/christodenny/repos","events_url":"https://api.github.com/users/christodenny/events{/privacy}","received_events_url":"https://api.github.com/users/christodenny/received_events","type":"User","site_admin":false},"body":"@csstaub @alokmenghrajani @mcpherrinm @worldwise001 ptal","created_at":"2016-06-03T20:09:10Z","updated_at":"2016-06-03T20:18:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08f16f286ee9b8dab609b5f5d2b9f81b7defed7a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/certigo/pulls/32/commits","review_comments_url":"https://api.github.com/repos/square/certigo/pulls/32/comments","review_comment_url":"https://api.github.com/repos/square/certigo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/certigo/issues/32/comments","statuses_url":"https://api.github.com/repos/square/certigo/statuses/aeb0a62d461f8bfe3b808083e4dc86795fed21de","head":{"label":"square:cdenny/jceksSupport","ref":"cdenny/jceksSupport","sha":"aeb0a62d461f8bfe3b808083e4dc86795fed21de","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":59852599,"name":"certigo","full_name":"square/certigo","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/certigo","description":"A utility to examine and validate certificates in a variety of formats","fork":false,"url":"https://api.github.com/repos/square/certigo","forks_url":"https://api.github.com/repos/square/certigo/forks","keys_url":"https://api.github.com/repos/square/certigo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/certigo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/certigo/teams","hooks_url":"https://api.github.com/repos/square/certigo/hooks","issue_events_url":"https://api.github.com/repos/square/certigo/issues/events{/number}","events_url":"https://api.github.com/repos/square/certigo/events","assignees_url":"https://api.github.com/repos/square/certigo/assignees{/user}","branches_url":"https://api.github.com/repos/square/certigo/branches{/branch}","tags_url":"https://api.github.com/repos/square/certigo/tags","blobs_url":"https://api.github.com/repos/square/certigo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/certigo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/certigo/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/certigo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/certigo/statuses/{sha}","languages_url":"https://api.github.com/repos/square/certigo/languages","stargazers_url":"https://api.github.com/repos/square/certigo/stargazers","contributors_url":"https://api.github.com/repos/square/certigo/contributors","subscribers_url":"https://api.github.com/repos/square/certigo/subscribers","subscription_url":"https://api.github.com/repos/square/certigo/subscription","commits_url":"https://api.github.com/repos/square/certigo/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/certigo/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/certigo/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/certigo/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/certigo/contents/{+path}","compare_url":"https://api.github.com/repos/square/certigo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/certigo/merges","archive_url":"https://api.github.com/repos/square/certigo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/certigo/downloads","issues_url":"https://api.github.com/repos/square/certigo/issues{/number}","pulls_url":"https://api.github.com/repos/square/certigo/pulls{/number}","milestones_url":"https://api.github.com/repos/square/certigo/milestones{/number}","notifications_url":"https://api.github.com/repos/square/certigo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/certigo/labels{/name}","releases_url":"https://api.github.com/repos/square/certigo/releases{/id}","deployments_url":"https://api.github.com/repos/square/certigo/deployments","created_at":"2016-05-27T17:41:53Z","updated_at":"2016-06-03T06:22:26Z","pushed_at":"2016-06-03T20:15:56Z","git_url":"git://github.com/square/certigo.git","ssh_url":"git@github.com:square/certigo.git","clone_url":"https://github.com/square/certigo.git","svn_url":"https://github.com/square/certigo","homepage":"","size":56,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":4,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"b273c971235dc3c75d7be502b77905e28347f1ca","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":59852599,"name":"certigo","full_name":"square/certigo","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/certigo","description":"A utility to examine and validate certificates in a variety of formats","fork":false,"url":"https://api.github.com/repos/square/certigo","forks_url":"https://api.github.com/repos/square/certigo/forks","keys_url":"https://api.github.com/repos/square/certigo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/certigo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/certigo/teams","hooks_url":"https://api.github.com/repos/square/certigo/hooks","issue_events_url":"https://api.github.com/repos/square/certigo/issues/events{/number}","events_url":"https://api.github.com/repos/square/certigo/events","assignees_url":"https://api.github.com/repos/square/certigo/assignees{/user}","branches_url":"https://api.github.com/repos/square/certigo/branches{/branch}","tags_url":"https://api.github.com/repos/square/certigo/tags","blobs_url":"https://api.github.com/repos/square/certigo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/certigo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/certigo/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/certigo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/certigo/statuses/{sha}","languages_url":"https://api.github.com/repos/square/certigo/languages","stargazers_url":"https://api.github.com/repos/square/certigo/stargazers","contributors_url":"https://api.github.com/repos/square/certigo/contributors","subscribers_url":"https://api.github.com/repos/square/certigo/subscribers","subscription_url":"https://api.github.com/repos/square/certigo/subscription","commits_url":"https://api.github.com/repos/square/certigo/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/certigo/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/certigo/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/certigo/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/certigo/contents/{+path}","compare_url":"https://api.github.com/repos/square/certigo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/certigo/merges","archive_url":"https://api.github.com/repos/square/certigo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/certigo/downloads","issues_url":"https://api.github.com/repos/square/certigo/issues{/number}","pulls_url":"https://api.github.com/repos/square/certigo/pulls{/number}","milestones_url":"https://api.github.com/repos/square/certigo/milestones{/number}","notifications_url":"https://api.github.com/repos/square/certigo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/certigo/labels{/name}","releases_url":"https://api.github.com/repos/square/certigo/releases{/id}","deployments_url":"https://api.github.com/repos/square/certigo/deployments","created_at":"2016-05-27T17:41:53Z","updated_at":"2016-06-03T06:22:26Z","pushed_at":"2016-06-03T20:15:56Z","git_url":"git://github.com/square/certigo.git","ssh_url":"git@github.com:square/certigo.git","clone_url":"https://github.com/square/certigo.git","svn_url":"https://github.com/square/certigo","homepage":"","size":56,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/certigo/pulls/32"},"html":{"href":"https://github.com/square/certigo/pull/32"},"issue":{"href":"https://api.github.com/repos/square/certigo/issues/32"},"comments":{"href":"https://api.github.com/repos/square/certigo/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/square/certigo/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/square/certigo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/certigo/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/square/certigo/statuses/aeb0a62d461f8bfe3b808083e4dc86795fed21de"}}}}
{"actor":{"display_login":"csstaub"}}