Skip to content

Deprecate X509Name and the remaining APIs that consume or return it#1514

Merged
reaperhulk merged 1 commit into
mainfrom
claude/lucid-tesla-5lzZ6
Jun 12, 2026
Merged

Deprecate X509Name and the remaining APIs that consume or return it#1514
reaperhulk merged 1 commit into
mainfrom
claude/lucid-tesla-5lzZ6

Conversation

@alex

@alex alex commented Jun 12, 2026

Copy link
Copy Markdown
Member

Deprecates OpenSSL.crypto.X509Name and the remaining APIs that consume or return it, in favor of cryptography.x509:

  • OpenSSL.crypto.X509Name (the class itself)
  • OpenSSL.crypto.X509.get_issuer
  • OpenSSL.crypto.X509.get_subject
  • OpenSSL.SSL.Context.set_client_ca_list

X509.set_issuer and X509.set_subject were already deprecated as part of the X509 mutable-API deprecations (#1510), so they're not repeated here.

Notes:

  • OpenSSL.SSL.Connection.get_client_ca_list is intentionally not deprecated — it grew an as_cryptography parameter in Add as_cryptography parameter to Connection.get_client_ca_list #1508, which is the supported path going forward.
  • Internal X509Name construction sites (X509._get_name and Connection.get_client_ca_list) use object.__new__(X509Name) so they don't emit spurious deprecation warnings; the user-facing deprecated methods are decorated individually and each emits exactly one warning.

https://claude.ai/code/session_01KzTRkDmWNuEfCubRUhVit5


Generated by Claude Code

Deprecates X509Name, X509.get_issuer, X509.get_subject, and
Context.set_client_ca_list in favor of the APIs in cryptography.x509.
X509.set_issuer and X509.set_subject were already deprecated as part of
the X509 mutable-API deprecations.

Connection.get_client_ca_list is not deprecated; it grew an
as_cryptography parameter separately.
@reaperhulk reaperhulk merged commit 24db880 into main Jun 12, 2026
75 checks passed
@alex alex deleted the claude/lucid-tesla-5lzZ6 branch June 12, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants