Skip to content

Rework libparsec_platform_pki 9: Rework X509Certificate on server - #12585

Closed
touilleMan wants to merge 1 commit into
rework-platform-pki-8-fix-libparsec_platform_device_loaderfrom
rework-platform-pki-9-fix-server
Closed

Rework libparsec_platform_pki 9: Rework X509Certificate on server#12585
touilleMan wants to merge 1 commit into
rework-platform-pki-8-fix-libparsec_platform_device_loaderfrom
rework-platform-pki-9-fix-server

Conversation

@touilleMan

Copy link
Copy Markdown
Contributor
  • Rework X509Certificate to do eager validation and have properties for issuer/subject/sha256_fingerprint/der
  • Remove no longer needed Python type X509Certificate2 (it only goal was to correct the shortcoming of X509Certificate)
  • Rename TrustAnchor -> X509TrustAnchor
  • Remove unused PkiUntrusted & PkiInvalidSignature exceptions
  • Remove PkiInvalidCertificateDER exception: use ValueError instead for consistency&simplicity
  • Rename X509Certificate/X509TrustAnchor methods try_from_pem/from_pem/from_der -> load_pem/load_der (for consistency with Sequester*KeyDer types that also load PEM/DER formats)

@touilleMan
touilleMan requested review from a team as code owners April 10, 2026 07:41
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from dff4c53 to b36df79 Compare April 10, 2026 07:47
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from d1d47c7 to 7a3f1b0 Compare April 10, 2026 07:55
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from b36df79 to 0828732 Compare April 10, 2026 07:55
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from 7a3f1b0 to cb8a03f Compare April 10, 2026 08:08
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from 0828732 to aca9d76 Compare April 10, 2026 08:08
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from cb8a03f to dd071a1 Compare April 15, 2026 14:08
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from aca9d76 to 7c04624 Compare April 15, 2026 14:08
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from dd071a1 to 1ef4d2b Compare April 16, 2026 08:54
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from 7c04624 to e955568 Compare April 16, 2026 08:54
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from e955568 to 3f3deee Compare April 18, 2026 02:29
@touilleMan
touilleMan requested review from a team as code owners April 18, 2026 02:29
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from 1ef4d2b to 4c5bd90 Compare April 18, 2026 02:29
- Rework `X509Certificate` to do eager validation and have properties for issuer/subject/sha256_fingerprint/der
- Remove no longer needed Python type `X509Certificate2` (it only goal was to correct the shortcoming of `X509Certificate`)
- Rename `TrustAnchor` -> `X509TrustAnchor`
- Remove unused `PkiUntrusted` & `PkiInvalidSignature` exceptions
- Remove `PkiInvalidCertificateDER` exception: use `ValueError` instead for consistency&simplicity
- Rename `X509Certificate`/`X509TrustAnchor` methods `try_from_pem`/`from_pem`/`from_der` -> `load_pem`/`load_der`
  (for consistency with `Sequester*KeyDer` types that also load PEM/DER formats)
@touilleMan
touilleMan force-pushed the rework-platform-pki-8-fix-libparsec_platform_device_loader branch from 4c5bd90 to a39f0c3 Compare April 21, 2026 10:52
@touilleMan
touilleMan force-pushed the rework-platform-pki-9-fix-server branch from 3f3deee to 77c662f Compare April 21, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants