aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* simplify x509 csr builder testsPaul Kehrer2015-06-261-40/+0
|
* Use SECP256R1 instead of SECT283K1 in CSR testsIan Cordasco2015-06-242-4/+4
|
* Add test for unicode attributes in CSRsIan Cordasco2015-06-241-0/+32
| | | | | This creates a CSR, converts it to bytes, and then loads it again to ensure that the unicode strings are parsed properly.
* Skip tests when the EC curve is unsupportedIan Cordasco2015-06-242-0/+3
|
* Add tests to the CSR Builder for EC and DSA keysIan Cordasco2015-06-242-4/+108
| | | | | | This skips certain tests on certain versions of differences in how X509_REQ_sign works on those versions. A separate pull request will address those differences.
* Simplify test for unsupported extensionsIan Cordasco2015-06-241-9/+1
|
* Address review comments around add_extension methodIan Cordasco2015-06-241-2/+3
| | | | | | | | | - Fix typo in the docs (s/buidlder/builder/) - Remove default from the method declaration and docs - Replace ValueError with NotImpelementedError for unsupported X.509 extensions - Add TODO comment as requested by Alex - Fix test to pass critical=False since it no longer is a default value
* Properly use RSA fixtures to generate private keysIan Cordasco2015-06-241-4/+10
|
* Update CSR tests and implementationIan Cordasco2015-06-241-21/+5
| | | | | | | | | | - Use keyword arguments for x509.BasicConstraints in tests (missed in b790edbdc8fb9a026353d6fb99994326197705c7). - Place X509_request garbage collection under assertion. - Assert that X509 extensions created are not null. - Don't copy the extensions list in CertificateSigningBuilder. They're never appended to, so copying isn't necessary. - Use RSA key fixtures instead of generating new ones on each test run
* Fix new tests to pass text value to NameAttributeIan Cordasco2015-06-241-20/+20
|
* Address code review regarding style and gcIan Cordasco2015-06-241-2/+2
| | | | | | | | | - Use keyword arguments for x509.BasicConstraints in several places - Use SHA256 instead of SHA1 in documented examples - Give function variables meaningful names in _encode_asn1_str - Accept a x509.BasicConstraints object in _encode_basic_constraints - Properly garbage-collect some things - Raise a NotImplementedError instead of a ValueError
* Fixes PEP8 issue in tests.Andre Caron2015-06-241-5/+0
|
* Removes set_ prefix on CSR builder method.Andre Caron2015-06-241-4/+4
|
* Changes builder extension API.Andre Caron2015-06-241-31/+14
|
* Removes CSR builder version setter.Andre Caron2015-06-241-23/+18
|
* Adds method chaining to CSR builder.Andre Caron2015-06-241-29/+30
|
* Renames sign_509_request to create_x509_csr.Andre Caron2015-06-241-0/+6
|
* Adds CSR builder.Andre Caron2015-06-241-0/+147
|
* fix ec_cdata_to_evp_pkey bugPaul Kehrer2015-06-221-0/+18
| | | | | | We weren't actually returning the object and the tests weren't catching it because we didn't try to use the evp_pkey property in the tests. The added test confirms it actually works.
* Remove our workarounds for pyasn.1 bugs, a new pyasn.1 is out!Alex Gaynor2015-06-221-2/+2
|
* add eq/ne support to NameConstraintsPaul Kehrer2015-06-211-0/+29
|
* add nameconstraints classesPaul Kehrer2015-06-211-0/+68
|
* Merge pull request #2036 from major/masterAlex Gaynor2015-06-211-0/+33
|\ | | | | Added a repr() method to x509._Certificate
| * Added a repr() method to x509._CertificateMajor Hayden2015-06-211-0/+33
| |
* | Refs #1947 -- add support for IAN to the OpenSSL backendAlex Gaynor2015-06-201-0/+17
| |
* | inhibit any policy extension support for the openssl backendPaul Kehrer2015-06-171-0/+17
| |
* | support OCSPNoCheck in the OpenSSL backendPaul Kehrer2015-06-171-0/+17
|/
* Conditionally construct the repr of NameAttributesIan Cordasco2015-06-162-19/+43
|
* Correct x509.NameAttribute test passing bytesIan Cordasco2015-06-162-171/+173
|
* Enforce text type of NameAttribute.valueIan Cordasco2015-06-161-0/+7
|
* Merge pull request #2017 from reaperhulk/issuer-alternative-nameAlex Gaynor2015-06-131-0/+56
|\ | | | | issuer alternative name support
| * issuer alternative name supportPaul Kehrer2015-06-071-0/+56
| |
* | Add ConcatKDF from NIST SP 800-56ASimo Sorce2015-06-121-0/+251
| | | | | | | | | | | | | | | | | | The implemention allows the use an HMAC function as per Revision 2 of the document. Conformance of the formatting of the OtherInfo argument is responsability of the calling application. Signed-off-by: Simo Sorce <simo@redhat.com>
* | convert to cffi 1.0 precompile systemPaul Kehrer2015-06-074-58/+14
|/
* Merge pull request #1990 from tonyseek/key-uriPaul Kehrer2015-06-032-0/+26
|\ | | | | Add "get_provisioning_uri" utility for HOTP/TOTP.
| * Remove a default argument and rename a private function.Jiangge Zhang2015-06-032-3/+3
| |
| * Follow the review advice: turn URI generator into methods.Jiangge Zhang2015-06-032-9/+4
| |
| * Add "generate_key_uri" utility for HOTP/TOTP.Jiangge Zhang2015-05-262-0/+31
| |
* | Merge pull request #1907 from simo5/ECDHKDFTestsPaul Kehrer2015-06-022-0/+73
|\ \ | | | | | | Ecdh kdf tests
| * | Modify ECDH Test vector loader for KDF vectorsSimo Sorce2015-05-062-0/+73
| | | | | | | | | | | | | | | | | | Also add tests for the new vectors Signed-off-by: Simo Sorce <simo@redhat.com>
* | | Merge pull request #1954 from reaperhulk/inhibitanypolicyAlex Gaynor2015-05-291-0/+25
|\ \ \ | | | | | | | | InhibitAnyPolicy class
| * | | InhibitAnyPolicy classPaul Kehrer2015-05-261-0/+25
| | |/ | |/|
* | | Merge pull request #1956 from etrauschke/crl_bindings_interfacesPaul Kehrer2015-05-281-1/+57
|\ \ \ | |/ / |/| | add bindings and interfaces for CRL objects
| * | add bindings and interfaces for CRL objectsErik Trauschke2015-05-271-1/+57
| | |
* | | Merge pull request #1989 from elitest/fixapachelicPaul Kehrer2015-05-241-12/+3
|\ \ \ | |/ / |/| | Fix dual license in test_dh.py
| * | Fix dual license in test_dh.pyJim Shaver2015-05-241-12/+3
| | |
* | | Adds certificate encoding to PEM and DER.Andre Caron2015-05-191-0/+84
| | |
* | | add test to confirm IDNA2003 is disallowedPaul Kehrer2015-05-181-0/+11
| | | | | | | | | | | | document that this is a possible exception
* | | Adds public bytes comparison test.Andre Caron2015-05-181-0/+24
| | |
* | | Renames test cases.Andre Caron2015-05-181-3/+3
| | |