OpenSSL 4 removed built-in logic for SKID and AKID

オープン
#7,617 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@LeonxLJX がすでに取り組んでいます。

2026年9月4日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
security, testing

調査の方向性

まず tests/certs/expired、tests/certs/mtls、tests/certs/valid/server の Makefile と証明書フィクスチャから始め、次に記載されている make および pytest コマンドで問題を再現してください。生成された証明書に subjectKeyIdentifier と authorityKeyIdentifier が含まれ、影響を受けるテストが OpenSSL 4.0.2 で成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The openssl command used to have built-in logic to automaticaly add
subjectKeyIdentifier and authorityKeyIdentifier to created certificates.
This logic vanished in OpenSSL 4.0 and the extensions are missing.

Python 3.13+ uses VERIFY_X509_STRICT to verify the certificate. Missing
those attributes is an error.

Expected Result

A certificated with SKID and AKID.

Actual Result

No SKID and AKID.

Reproduction Steps

$ openssl version
OpenSSL 4.0.2 25 Aug 2026 (Library: OpenSSL 4.0.2 25 Aug 2026)
for cert in expired mtls valid/server ; do make -C  tests/certs/$cert clean all; done
pytest -v tests/test_requests.py

And then somewhere appears

 error = SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1082)'))
 _pool = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7f0a6d92a2c0>
 _stacktrace = <traceback object at 0x7f0a6dfa7a80>
....
 FAILED tests/test_requests.py::TestPreparingURLs::test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert

I prepared https://github.com/sebastianas/requests/commit/339333739074118a93a9f496981b394e94bc1690 as a fix but can't open a pull request.

Sebastian

主要言語
Python
スター
54.7k
フォーク
10.8k
平均マージ
18分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

psf/requests のほかの issue

psf/requests の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。