1. 20 Dec, 2023 3 commits
  2. 18 Dec, 2023 4 commits
  3. 16 Dec, 2023 1 commit
  4. 30 Nov, 2023 2 commits
  5. 25 Nov, 2023 1 commit
  6. 13 Nov, 2023 2 commits
  7. 10 Nov, 2023 1 commit
  8. 09 Nov, 2023 3 commits
  9. 06 Nov, 2023 2 commits
  10. 04 Nov, 2023 1 commit
  11. 11 Oct, 2023 2 commits
  12. 02 Oct, 2023 2 commits
  13. 29 Sep, 2023 4 commits
  14. 18 Sep, 2023 2 commits
  15. 15 Sep, 2023 3 commits
  16. 14 Sep, 2023 2 commits
  17. 13 Sep, 2023 2 commits
  18. 11 Sep, 2023 1 commit
  19. 10 Sep, 2023 2 commits
    • bitkeeper's avatar
      Adds a certificate validation hook to the client and server · 0cd54642
      bitkeeper authored
      With the hook you can register callback method with the following type `CertificateValidatorMethod`:
      ```
      Callable[[x509.Certificate, ApplicationDescription], Awaitable[None]]
      ```
      
      The method should raise an `ServiceError` exception when the certificate is invalid.
      The makes it possible to provide your own logic for validation.
      
      An default implementation of such certificate validation hook is also provided by `ucrypto.validator.CertificateValidator`.
      
      `CertificateValidator` supports checking:
      - Uri
      - Timerange
      - Key Usage
      - Extended Key Usage
      - Trust
      - Revoked
      
      For the last two checks a instance of a `TrustStore` needs to be provided to `CertificateValidator`.
      
      Which checks must be performed can be configured with `CertificateValidatorOptions`. Those are provide to the constructor of `CertificateValidator` and can be changed later with `CertificateValidator.set_validate_options`.
      
      Examples of client and server with encryption are changed to demonstrate the use of the validator.
      
      Basic testing of the validator is present.
      0cd54642
    • Yuta Okamoto's avatar
      d3d52103