1. 15 Sep, 2023 3 commits
  2. 14 Sep, 2023 2 commits
  3. 13 Sep, 2023 2 commits
  4. 11 Sep, 2023 1 commit
  5. 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
  6. 07 Sep, 2023 2 commits
  7. 01 Sep, 2023 2 commits
  8. 24 Aug, 2023 9 commits
  9. 22 Aug, 2023 1 commit
  10. 14 Aug, 2023 2 commits
  11. 13 Aug, 2023 1 commit
  12. 09 Aug, 2023 11 commits
  13. 04 Aug, 2023 2 commits