{"action":"created","comment":{"url":"https://api.github.com/repos/pyca/cryptography/pulls/comments/36037581","id":36037581,"diff_hunk":"@@ -775,6 +775,350 @@ def test_hash(self, backend):\n         assert hash(request1) == hash(request2)\n         assert hash(request1) != hash(request3)\n \n+    def test_build_cert(self, backend):\n+        issuer_private_key = RSA_KEY_2048.private_key(backend)\n+        subject_private_key = RSA_KEY_2048.private_key(backend)\n+\n+        not_valid_before = datetime.datetime(2002, 1, 1, 12, 1)\n+        not_valid_after = datetime.datetime(2030, 12, 31, 8, 30)\n+\n+        builder = x509.CertificateBuilder().serial_number(\n+            777\n+        ).issuer_name(x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])).subject_name(x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])).public_key(\n+            subject_private_key.public_key()\n+        ).add_extension(\n+            x509.BasicConstraints(ca=False, path_length=None), True,\n+        ).add_extension(\n+            x509.SubjectAlternativeName([x509.DNSName(u\"cryptography.io\")]),\n+            critical=False,\n+        ).not_valid_before(\n+            not_valid_before\n+        ).not_valid_after(\n+            not_valid_after\n+        )\n+\n+        cert = builder.sign(backend, issuer_private_key, hashes.SHA1())\n+\n+        assert cert.version is x509.Version.v3\n+        assert cert.not_valid_before == not_valid_before\n+        assert cert.not_valid_after == not_valid_after\n+        basic_constraints = cert.extensions.get_extension_for_oid(\n+            x509.OID_BASIC_CONSTRAINTS\n+        )\n+        assert basic_constraints.value.ca is False\n+        assert basic_constraints.value.path_length is None\n+\n+\n+class TestCertificateBuilder(object):\n+    def test_issuer_name_must_be_a_name_type(self):\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(TypeError):\n+            builder.issuer_name(\"subject\")\n+\n+        with pytest.raises(TypeError):\n+            builder.issuer_name(object)\n+\n+    def test_issuer_name_may_only_be_set_once(self):\n+        name = x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])\n+        builder = x509.CertificateBuilder().issuer_name(name)\n+\n+        with pytest.raises(ValueError):\n+            builder.issuer_name(name)\n+\n+    def test_subject_name_must_be_a_name_type(self):\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(TypeError):\n+            builder.subject_name(\"subject\")\n+\n+        with pytest.raises(TypeError):\n+            builder.subject_name(object)\n+\n+    def test_subject_name_may_only_be_set_once(self):\n+        name = x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])\n+        builder = x509.CertificateBuilder().subject_name(name)\n+\n+        with pytest.raises(ValueError):\n+            builder.subject_name(name)\n+\n+    @pytest.mark.requires_backend_interface(interface=RSABackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_public_key_must_be_public_key(self, backend):\n+        private_key = RSA_KEY_2048.private_key(backend)\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(TypeError):\n+            builder.public_key(private_key)\n+\n+    @pytest.mark.requires_backend_interface(interface=RSABackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_public_key_may_only_be_set_once(self, backend):\n+        private_key = RSA_KEY_2048.private_key(backend)\n+        public_key = private_key.public_key()\n+        builder = x509.CertificateBuilder().public_key(public_key)\n+\n+        with pytest.raises(ValueError):\n+            builder.public_key(public_key)\n+\n+    def test_serial_number_must_be_an_integer_type(self):\n+        with pytest.raises(TypeError):\n+            x509.CertificateBuilder().serial_number(10.0)\n+\n+    def test_serial_number_may_only_be_set_once(self):\n+        builder = x509.CertificateBuilder().serial_number(10)\n+\n+        with pytest.raises(ValueError):\n+            builder.serial_number(20)\n+\n+    def test_invalid_not_valid_after(self):\n+        with pytest.raises(TypeError):\n+            x509.CertificateBuilder().not_valid_after(104204304504)\n+\n+        with pytest.raises(TypeError):\n+            x509.CertificateBuilder().not_valid_after(datetime.time())\n+\n+    def test_not_valid_after_may_only_be_set_once(self):\n+        builder = x509.CertificateBuilder().not_valid_after(\n+            datetime.datetime.now()\n+        )\n+\n+        with pytest.raises(ValueError):\n+            builder.not_valid_after(\n+                datetime.datetime.now()\n+            )\n+\n+    def test_invalid_not_valid_before(self):\n+        with pytest.raises(TypeError):\n+            x509.CertificateBuilder().not_valid_before(104204304504)\n+\n+        with pytest.raises(TypeError):\n+            x509.CertificateBuilder().not_valid_before(datetime.time())\n+\n+    def test_not_valid_before_may_only_be_set_once(self):\n+        builder = x509.CertificateBuilder().not_valid_before(\n+            datetime.datetime.now()\n+        )\n+\n+        with pytest.raises(ValueError):\n+            builder.not_valid_before(\n+                datetime.datetime.now()\n+            )\n+\n+    def test_add_extension_checks_for_duplicates(self):\n+        builder = x509.CertificateBuilder().add_extension(\n+            x509.BasicConstraints(ca=False, path_length=None), True,\n+        )\n+\n+        with pytest.raises(ValueError):\n+            builder.add_extension(\n+                x509.BasicConstraints(ca=False, path_length=None), True,\n+            )\n+\n+    def test_add_unsupported_extension(self):\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(NotImplementedError):\n+            builder.add_extension(object(), False)\n+\n+    @pytest.mark.requires_backend_interface(interface=RSABackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_sign_with_unsupported_hash(self, backend):\n+        private_key = RSA_KEY_2048.private_key(backend)\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(TypeError):\n+            builder.sign(backend, private_key, object())\n+\n+    @pytest.mark.requires_backend_interface(interface=DSABackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_sign_with_dsa_private_key_is_unsupported(self, backend):\n+        if backend._lib.OPENSSL_VERSION_NUMBER >= 0x10001000:\n+            pytest.skip(\"Requires an older OpenSSL. Must be < 1.0.1\")\n+\n+        private_key = DSA_KEY_2048.private_key(backend)\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(NotImplementedError):\n+            builder.sign(backend, private_key, hashes.SHA512())\n+\n+    @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_sign_with_ec_private_key_is_unsupported(self, backend):\n+        if backend._lib.OPENSSL_VERSION_NUMBER >= 0x10001000:\n+            pytest.skip(\"Requires an older OpenSSL. Must be < 1.0.1\")\n+\n+        _skip_curve_unsupported(backend, ec.SECP256R1())\n+        private_key = ec.generate_private_key(ec.SECP256R1(), backend)\n+        builder = x509.CertificateBuilder()\n+\n+        with pytest.raises(NotImplementedError):\n+            builder.sign(backend, private_key, hashes.SHA512())\n+\n+    @pytest.mark.requires_backend_interface(interface=DSABackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_build_cert_with_dsa_private_key(self, backend):\n+        if backend._lib.OPENSSL_VERSION_NUMBER < 0x10001000:\n+            pytest.skip(\"Requires a newer OpenSSL. Must be >= 1.0.1\")\n+\n+        issuer_private_key = DSA_KEY_2048.private_key(backend)\n+        subject_private_key = DSA_KEY_2048.private_key(backend)\n+\n+        not_valid_before = datetime.datetime(2002, 1, 1, 12, 1)\n+        not_valid_after = datetime.datetime(2030, 12, 31, 8, 30)\n+\n+        builder = x509.CertificateBuilder().serial_number(\n+            777\n+        ).issuer_name(x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])).subject_name(x509.Name([\n+            x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'),\n+            x509.NameAttribute(x509.OID_STATE_OR_PROVINCE_NAME, u'Texas'),\n+            x509.NameAttribute(x509.OID_LOCALITY_NAME, u'Austin'),\n+            x509.NameAttribute(x509.OID_ORGANIZATION_NAME, u'PyCA'),\n+            x509.NameAttribute(x509.OID_COMMON_NAME, u'cryptography.io'),\n+        ])).public_key(\n+            subject_private_key.public_key()\n+        ).add_extension(\n+            x509.BasicConstraints(ca=False, path_length=None), True,\n+        ).add_extension(\n+            x509.SubjectAlternativeName([x509.DNSName(u\"cryptography.io\")]),\n+            critical=False,\n+        ).not_valid_before(\n+            not_valid_before\n+        ).not_valid_after(\n+            not_valid_after\n+        )\n+\n+        cert = builder.sign(backend, issuer_private_key, hashes.SHA1())\n+\n+        assert cert.version is x509.Version.v3\n+        assert cert.not_valid_before == not_valid_before\n+        assert cert.not_valid_after == not_valid_after\n+        basic_constraints = cert.extensions.get_extension_for_oid(\n+            x509.OID_BASIC_CONSTRAINTS\n+        )\n+        assert basic_constraints.value.ca is False\n+        assert basic_constraints.value.path_length is None\n+\n+    @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)\n+    @pytest.mark.requires_backend_interface(interface=X509Backend)\n+    def test_build_cert_with_dsa_private_key(self, backend):","path":"tests/test_x509.py","position":269,"original_position":269,"commit_id":"6fdc89517a6466a8ab3632f1caac872a8ba6d9de","original_commit_id":"6fdc89517a6466a8ab3632f1caac872a8ba6d9de","user":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"body":"There are two methods here with teh same name.","created_at":"2015-08-01T22:16:03Z","updated_at":"2015-08-01T22:16:03Z","html_url":"https://github.com/pyca/cryptography/pull/2098#discussion_r36037581","pull_request_url":"https://api.github.com/repos/pyca/cryptography/pulls/2098","_links":{"self":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/comments/36037581"},"html":{"href":"https://github.com/pyca/cryptography/pull/2098#discussion_r36037581"},"pull_request":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/2098"}}},"pull_request":{"url":"https://api.github.com/repos/pyca/cryptography/pulls/2098","id":39043415,"html_url":"https://github.com/pyca/cryptography/pull/2098","diff_url":"https://github.com/pyca/cryptography/pull/2098.diff","patch_url":"https://github.com/pyca/cryptography/pull/2098.patch","issue_url":"https://api.github.com/repos/pyca/cryptography/issues/2098","number":2098,"state":"open","locked":false,"title":"Adds certificate builder.","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"body":"This is a rebased version of #1980 and will be used to finish up the work in that PR.","created_at":"2015-07-02T02:33:02Z","updated_at":"2015-08-01T22:16:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53babc5e3bf421ba6f0810a14e0c58cc899b54fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyca/cryptography/pulls/2098/commits","review_comments_url":"https://api.github.com/repos/pyca/cryptography/pulls/2098/comments","review_comment_url":"https://api.github.com/repos/pyca/cryptography/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyca/cryptography/issues/2098/comments","statuses_url":"https://api.github.com/repos/pyca/cryptography/statuses/6fdc89517a6466a8ab3632f1caac872a8ba6d9de","head":{"label":"sigmavirus24:cert-builder","ref":"cert-builder","sha":"6fdc89517a6466a8ab3632f1caac872a8ba6d9de","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":37558857,"name":"cryptography","full_name":"sigmavirus24/cryptography","owner":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/cryptography","description":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.","fork":true,"url":"https://api.github.com/repos/sigmavirus24/cryptography","forks_url":"https://api.github.com/repos/sigmavirus24/cryptography/forks","keys_url":"https://api.github.com/repos/sigmavirus24/cryptography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/cryptography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/cryptography/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/cryptography/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/cryptography/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/cryptography/events","assignees_url":"https://api.github.com/repos/sigmavirus24/cryptography/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/cryptography/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/cryptography/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/cryptography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/cryptography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/cryptography/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/cryptography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/cryptography/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/cryptography/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/cryptography/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/cryptography/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/cryptography/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/cryptography/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/cryptography/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/cryptography/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/cryptography/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/cryptography/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/cryptography/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/cryptography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/cryptography/merges","archive_url":"https://api.github.com/repos/sigmavirus24/cryptography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/cryptography/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/cryptography/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/cryptography/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/cryptography/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/cryptography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/cryptography/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/cryptography/releases{/id}","created_at":"2015-06-16T22:13:47Z","updated_at":"2015-06-16T22:13:54Z","pushed_at":"2015-08-01T21:16:26Z","git_url":"git://github.com/sigmavirus24/cryptography.git","ssh_url":"git@github.com:sigmavirus24/cryptography.git","clone_url":"https://github.com/sigmavirus24/cryptography.git","svn_url":"https://github.com/sigmavirus24/cryptography","homepage":"https://cryptography.io/","size":30684,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"pyca:master","ref":"master","sha":"32a92b6afaf0086f2b0e6b9cf7235576b06503b0","user":{"login":"pyca","id":5615737,"avatar_url":"https://avatars.githubusercontent.com/u/5615737?v=3","gravatar_id":"","url":"https://api.github.com/users/pyca","html_url":"https://github.com/pyca","followers_url":"https://api.github.com/users/pyca/followers","following_url":"https://api.github.com/users/pyca/following{/other_user}","gists_url":"https://api.github.com/users/pyca/gists{/gist_id}","starred_url":"https://api.github.com/users/pyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyca/subscriptions","organizations_url":"https://api.github.com/users/pyca/orgs","repos_url":"https://api.github.com/users/pyca/repos","events_url":"https://api.github.com/users/pyca/events{/privacy}","received_events_url":"https://api.github.com/users/pyca/received_events","type":"Organization","site_admin":false},"repo":{"id":11939484,"name":"cryptography","full_name":"pyca/cryptography","owner":{"login":"pyca","id":5615737,"avatar_url":"https://avatars.githubusercontent.com/u/5615737?v=3","gravatar_id":"","url":"https://api.github.com/users/pyca","html_url":"https://github.com/pyca","followers_url":"https://api.github.com/users/pyca/followers","following_url":"https://api.github.com/users/pyca/following{/other_user}","gists_url":"https://api.github.com/users/pyca/gists{/gist_id}","starred_url":"https://api.github.com/users/pyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyca/subscriptions","organizations_url":"https://api.github.com/users/pyca/orgs","repos_url":"https://api.github.com/users/pyca/repos","events_url":"https://api.github.com/users/pyca/events{/privacy}","received_events_url":"https://api.github.com/users/pyca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyca/cryptography","description":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.","fork":false,"url":"https://api.github.com/repos/pyca/cryptography","forks_url":"https://api.github.com/repos/pyca/cryptography/forks","keys_url":"https://api.github.com/repos/pyca/cryptography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyca/cryptography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyca/cryptography/teams","hooks_url":"https://api.github.com/repos/pyca/cryptography/hooks","issue_events_url":"https://api.github.com/repos/pyca/cryptography/issues/events{/number}","events_url":"https://api.github.com/repos/pyca/cryptography/events","assignees_url":"https://api.github.com/repos/pyca/cryptography/assignees{/user}","branches_url":"https://api.github.com/repos/pyca/cryptography/branches{/branch}","tags_url":"https://api.github.com/repos/pyca/cryptography/tags","blobs_url":"https://api.github.com/repos/pyca/cryptography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyca/cryptography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyca/cryptography/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyca/cryptography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyca/cryptography/statuses/{sha}","languages_url":"https://api.github.com/repos/pyca/cryptography/languages","stargazers_url":"https://api.github.com/repos/pyca/cryptography/stargazers","contributors_url":"https://api.github.com/repos/pyca/cryptography/contributors","subscribers_url":"https://api.github.com/repos/pyca/cryptography/subscribers","subscription_url":"https://api.github.com/repos/pyca/cryptography/subscription","commits_url":"https://api.github.com/repos/pyca/cryptography/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyca/cryptography/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyca/cryptography/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyca/cryptography/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyca/cryptography/contents/{+path}","compare_url":"https://api.github.com/repos/pyca/cryptography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyca/cryptography/merges","archive_url":"https://api.github.com/repos/pyca/cryptography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyca/cryptography/downloads","issues_url":"https://api.github.com/repos/pyca/cryptography/issues{/number}","pulls_url":"https://api.github.com/repos/pyca/cryptography/pulls{/number}","milestones_url":"https://api.github.com/repos/pyca/cryptography/milestones{/number}","notifications_url":"https://api.github.com/repos/pyca/cryptography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyca/cryptography/labels{/name}","releases_url":"https://api.github.com/repos/pyca/cryptography/releases{/id}","created_at":"2013-08-07T02:23:38Z","updated_at":"2015-07-29T04:21:39Z","pushed_at":"2015-08-01T21:21:05Z","git_url":"git://github.com/pyca/cryptography.git","ssh_url":"git@github.com:pyca/cryptography.git","clone_url":"https://github.com/pyca/cryptography.git","svn_url":"https://github.com/pyca/cryptography","homepage":"https://cryptography.io/","size":45088,"stargazers_count":739,"watchers_count":739,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":173,"mirror_url":null,"open_issues_count":81,"forks":173,"open_issues":81,"watchers":739,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/2098"},"html":{"href":"https://github.com/pyca/cryptography/pull/2098"},"issue":{"href":"https://api.github.com/repos/pyca/cryptography/issues/2098"},"comments":{"href":"https://api.github.com/repos/pyca/cryptography/issues/2098/comments"},"review_comments":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/2098/comments"},"review_comment":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/2098/commits"},"statuses":{"href":"https://api.github.com/repos/pyca/cryptography/statuses/6fdc89517a6466a8ab3632f1caac872a8ba6d9de"}}}}