majuna/tests
Ana Custura d5fa521fa1 feat: break up validate_tls_keys and add unit tests
I've split the existing code in several new functions:
 - load_certificates_from_pem (takes pem data as bytes)
 - build_certificate_chain (takes a list of Certificates)
 - validate_certificate_chain (takes a list of Certificates)
 - validate_key (takes pem data as a string)
 - validate_key_matches_cert (now takes a pem key string and a Certificate)
 - extract_sans (now takes a Certificate)
 - validate_end_entity_expired (now takes a Certificate)
 - validate_end_entity_not_yet_valid (now takes a Certificate)

When a relevant exception arises, these functions raise a type of TLSValidationError,
these are appended to the list of errors when validating a cert.
2024-12-20 14:25:58 +00:00
..
api feat: expand onion service api 2024-12-06 13:34:44 +00:00
data feat: break up validate_tls_keys and add unit tests 2024-12-20 14:25:58 +00:00
list test: simplify list obfuscator tests 2024-12-20 14:08:18 +00:00
proxy feat(proxy): rewrite the meta module to support hot spares 2023-05-30 16:38:00 +01:00
utils feat: break up validate_tls_keys and add unit tests 2024-12-20 14:25:58 +00:00
__init__.py ci: let nose discover the tests 2022-05-17 08:13:27 +01:00