Bug report
Bug description:
The get_verified_chain() and get_unverified_chain() APIs for SSLSocket were updated in #109113, but the API wasn't updated for SSLObject. This leads to inconsistent return types, one returns _ssl.Certificate and the other returns bytes. It appears from #109113 that bytes is what's expected.
This caused an issue for Windows and macOS using Truststore which relies on these APIs for verifying certificates. A bugfix is coming for Truststore, but these APIs should return the same type.
cc @matiuszka
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux, Windows
Linked PRs
Bug report
Bug description:
The
get_verified_chain()andget_unverified_chain()APIs forSSLSocketwere updated in #109113, but the API wasn't updated forSSLObject. This leads to inconsistent return types, one returns_ssl.Certificateand the other returnsbytes. It appears from #109113 thatbytesis what's expected.This caused an issue for Windows and macOS using Truststore which relies on these APIs for verifying certificates. A bugfix is coming for Truststore, but these APIs should return the same type.
cc @matiuszka
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux, Windows
Linked PRs
get_un/verified_chaininSSLObjectandSSLSocket#118669get_un/verified_chaininSSLObjectandSSLSocket(GH-118669) #123082