{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3","id":38956488,"html_url":"https://github.com/totten/civicrm-cxn-rpc/pull/3","diff_url":"https://github.com/totten/civicrm-cxn-rpc/pull/3.diff","patch_url":"https://github.com/totten/civicrm-cxn-rpc/pull/3.patch","issue_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/3","number":3,"state":"open","locked":false,"title":"CRM-16757 - CRL downloads and cleanups","user":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"body":"This adds support for downloading CRL files (as specified in the CA certificate). The HTTP requests should ideally be cached, but `civicrm-cxn-rpc` doesn't have any data storage. Downstream (eg `civicrm-core`) should extend/swap the `HttpInterface` and provide a cache-enabled variant.\r\n\r\nWhile testing, I found some discrepancies in the X.509 extensions and made a few changes:\r\n * CA Cert: Don't use old Netscape extensions for CRL. Use standard extensions. (The NS ones seem to be deprecated and don't parse cleanly in phpseclib.)\r\n * App Cert: Mark the `keyUsage` as `keyEncipherment`. Its primary purpose is facilitating `RegistrationMessage` by encrypting a temporary AES key.\r\n * Directory Service Cert: Mark the `keyUsage` as `digitalSignature`. Its primary purpose is to sign and publish a list of approved applications.\r\n\r\nTODO: Republish `CiviRootCA` and `CiviTestRootCA`","created_at":"2015-07-01T07:52:15Z","updated_at":"2015-07-01T07:52:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3/commits","review_comments_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3/comments","review_comment_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/3/comments","statuses_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/statuses/27af6aa62aee57cd8481c49bfdbc74acb46f5932","head":{"label":"totten:master-certval","ref":"master-certval","sha":"27af6aa62aee57cd8481c49bfdbc74acb46f5932","user":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"repo":{"id":32662203,"name":"civicrm-cxn-rpc","full_name":"totten/civicrm-cxn-rpc","owner":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/totten/civicrm-cxn-rpc","description":"CiviConnect Protocol and Implementation","fork":false,"url":"https://api.github.com/repos/totten/civicrm-cxn-rpc","forks_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/forks","keys_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/teams","hooks_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/hooks","issue_events_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/events{/number}","events_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/events","assignees_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/assignees{/user}","branches_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/branches{/branch}","tags_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/tags","blobs_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/statuses/{sha}","languages_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/languages","stargazers_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/stargazers","contributors_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/contributors","subscribers_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/subscribers","subscription_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/subscription","commits_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/contents/{+path}","compare_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/merges","archive_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/downloads","issues_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues{/number}","pulls_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls{/number}","milestones_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/milestones{/number}","notifications_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/labels{/name}","releases_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/releases{/id}","created_at":"2015-03-22T04:46:23Z","updated_at":"2015-06-29T22:02:46Z","pushed_at":"2015-07-01T07:38:57Z","git_url":"git://github.com/totten/civicrm-cxn-rpc.git","ssh_url":"git@github.com:totten/civicrm-cxn-rpc.git","clone_url":"https://github.com/totten/civicrm-cxn-rpc.git","svn_url":"https://github.com/totten/civicrm-cxn-rpc","homepage":"","size":360,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"totten:master","ref":"master","sha":"53c4b9f48773aedfc9e839406d972ae801e7bb4f","user":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"repo":{"id":32662203,"name":"civicrm-cxn-rpc","full_name":"totten/civicrm-cxn-rpc","owner":{"login":"totten","id":1336047,"avatar_url":"https://avatars.githubusercontent.com/u/1336047?v=3","gravatar_id":"","url":"https://api.github.com/users/totten","html_url":"https://github.com/totten","followers_url":"https://api.github.com/users/totten/followers","following_url":"https://api.github.com/users/totten/following{/other_user}","gists_url":"https://api.github.com/users/totten/gists{/gist_id}","starred_url":"https://api.github.com/users/totten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totten/subscriptions","organizations_url":"https://api.github.com/users/totten/orgs","repos_url":"https://api.github.com/users/totten/repos","events_url":"https://api.github.com/users/totten/events{/privacy}","received_events_url":"https://api.github.com/users/totten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/totten/civicrm-cxn-rpc","description":"CiviConnect Protocol and Implementation","fork":false,"url":"https://api.github.com/repos/totten/civicrm-cxn-rpc","forks_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/forks","keys_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/teams","hooks_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/hooks","issue_events_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/events{/number}","events_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/events","assignees_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/assignees{/user}","branches_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/branches{/branch}","tags_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/tags","blobs_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/statuses/{sha}","languages_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/languages","stargazers_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/stargazers","contributors_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/contributors","subscribers_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/subscribers","subscription_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/subscription","commits_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/contents/{+path}","compare_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/merges","archive_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/downloads","issues_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues{/number}","pulls_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls{/number}","milestones_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/milestones{/number}","notifications_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/labels{/name}","releases_url":"https://api.github.com/repos/totten/civicrm-cxn-rpc/releases{/id}","created_at":"2015-03-22T04:46:23Z","updated_at":"2015-06-29T22:02:46Z","pushed_at":"2015-07-01T07:38:57Z","git_url":"git://github.com/totten/civicrm-cxn-rpc.git","ssh_url":"git@github.com:totten/civicrm-cxn-rpc.git","clone_url":"https://github.com/totten/civicrm-cxn-rpc.git","svn_url":"https://github.com/totten/civicrm-cxn-rpc","homepage":"","size":360,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3"},"html":{"href":"https://github.com/totten/civicrm-cxn-rpc/pull/3"},"issue":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/3"},"comments":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/totten/civicrm-cxn-rpc/statuses/27af6aa62aee57cd8481c49bfdbc74acb46f5932"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":444,"deletions":161,"changed_files":16}}