Limited certificate path validation only? are extensions accounted for?
まだ誰も着手していません。
評価
調査の方向性
まず validate.py と path.py の引用されたセクションを読み、次に、それらの証明書パスの処理を、文書化された検証範囲および参照されている InhibitAnyPolicy の動作と比較します。どの拡張機能をサポートすることが意図されているのか、またドキュメントがその範囲を正確に記載しているかを判断します。合意された検証またはドキュメントの計画ができれば完了です。
索引モデルが issue の本文から書いたものです。
説明
There are many valid/standard extensions that apply to the scope of 'Validate the certificate path'
It appears key usage and basic verification (i.e. OpenSSL only validates hostname, expiry, and root trust) are only considered for Valid certificate path in this library, It does not seem that it is respecting extensions that should also apply.
The simplest example I can think of is the InhibitAnyPolicy because you state it is not done:
# Steps 1 d-f
# We do not use initial-explicit-policy, initial-any-policy-inhibit or
# initial-policy-mapping-inhibit, so they are all set to the path length + 1
But it is just a fairly straight forward counter i.e. https://cryptography.io/en/latest/x509/reference/#cryptography.x509.InhibitAnyPolicy
The inhibit anyPolicy extension indicates that the special OID ANY_POLICY, is not considered an explicit match for other CertificatePolicies except when it appears in an intermediate self-issued CA certificate. The value indicates the number of additional non-self-issued certificates that may appear in the path before ANY_POLICY is no longer permitted. For example, a value of one indicates that ANY_POLICY may be processed in certificates issued by the subject of this certificate, but not in additional certificates in the path.
So there must be some reasoning to just set it to path +1 and not use it? There are a few more comments that have some inherent rationale that is not documented, this one stood out to me but I see others and all really should have the rationale explained in the documentation because the documentation leads us to believe all relevant (i.e. critical extension) checks are performed
The next one that comes to mind that is fairly straight forward to write about is;
subjectKeyIdentifier of the root CA cert should match the authorityKeyIdentifier of the next cert in the chain, and so-on. And I believe this is not taken care of in this library, which is an assumption because I've tried using self-signed.badssl.com which has neither of these and the chain was seemingly able to be validated (not throwing exceptions with missing subjectKeyIdentifier or authorityKeyIdentifier), albeit self-signed so not in any root CA store and ultimately reported invalid.
Does this library aim to properly and completely 'Validate the certificate path'? Or is it only accounting for basic OpenSSL verification + key usages? If it is not aiming or already actually applying complete 'Validate the certificate path' as it claims, you might want to consider updating the docs and main message you're project is stating.
Maybe 'limited certificate path validation, and aim to eventually be a complete certificate path validation solution for python'' would be more accurate?
- 主要言語
- Python
- スター
- 117
- フォーク
- 37
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wbond/certvalidator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wbond/certvalidator#46 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
wbond/certvalidator#44 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
wbond/certvalidator#22 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
wbond/certvalidator#11 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
wbond/certvalidator#56 · コメント 1 件 ·
wbond/certvalidator の issue をすべて見る
似ている issue
-
bug: conversation context selects the oldest thread messages instead of recent replies対応中かも @BLVCK-MAMBA-6 が今日担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/SkillBot#74 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
bad-antics/lateralus-lang#1438 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
area: control app
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
glossyio/traffic-monitor#415 ·
メンテナーはふだん 1 日以内に返信
-
apply_matrix_rect takes 6-9% of extract_text time対応中かも @g4lb が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pdfminer/pdfminer.six#1333 ·
メンテナーはふだん 1 日以内に返信