{"action":"created","issue":{"url":"https://api.github.com/repos/pyca/cryptography/issues/1808","labels_url":"https://api.github.com/repos/pyca/cryptography/issues/1808/labels{/name}","comments_url":"https://api.github.com/repos/pyca/cryptography/issues/1808/comments","events_url":"https://api.github.com/repos/pyca/cryptography/issues/1808/events","html_url":"https://github.com/pyca/cryptography/pull/1808","id":65448220,"number":1808,"title":"add extendedkeyusage extension","user":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pyca/cryptography/milestones/10","html_url":"https://github.com/pyca/cryptography/milestones/Ninth%20Release","labels_url":"https://api.github.com/repos/pyca/cryptography/milestones/10/labels","id":987787,"number":10,"title":"Ninth Release","description":"","creator":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":33,"state":"open","created_at":"2015-02-20T03:00:23Z","updated_at":"2015-03-31T13:18:46Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-31T13:18:44Z","updated_at":"2015-03-31T13:45:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pyca/cryptography/pulls/1808","html_url":"https://github.com/pyca/cryptography/pull/1808","diff_url":"https://github.com/pyca/cryptography/pull/1808.diff","patch_url":"https://github.com/pyca/cryptography/pull/1808.patch"},"body":"refs #1743"},"comment":{"url":"https://api.github.com/repos/pyca/cryptography/issues/comments/88090201","html_url":"https://github.com/pyca/cryptography/pull/1808#issuecomment-88090201","issue_url":"https://api.github.com/repos/pyca/cryptography/issues/1808","id":88090201,"user":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T13:45:42Z","updated_at":"2015-03-31T13:45:42Z","body":"We could also add support for properties that return a bool for the OIDs defined in the RFC. That'd let you do something like\r\n\r\n```python\r\neku = cert.extensions.get_extension_for_oid(x509.OID_EXTENDED_KEY_USAGE)\r\nif eku.server_auth:\r\n    print(\"this certificate has the serverAuth EKU usage\")\r\n```\r\n\r\nYou'd still need it to be iterable to obtain OIDs that we don't have convenience properties for though."}}