wbond / certvalidator

Python library for validating X.509 certificates and paths
MIT License
107 stars 31 forks source link

Allow additional critical extensions to be used during validate_path #33

Open achow101 opened 3 years ago

achow101 commented 3 years ago

Some certificates will contain critical extensions that certvalidator doesn't know about. If the caller knows those critical extensions, it can pass them into ValidationContext so that validate_path doesn't error when it gets to the critical extensions check.

chrisdlangton commented 2 years ago

@achow101 :100: agree

I came across the same issue which led me to raise #36 as it seems there are at least 3 certificate chain validation issues with this library.

i.e. 3 concerns that I looked into, I stopped due to 3 of 3 failures identified. There are very likely more cert chain validation issues present

The facts of this whole issue:

So it is a very sorry state for certification validation, and why we are seeing so many breaches, no one actually uses TLS properly anywhere, it's all smoke and mirrors.

fanquake commented 2 years ago

@wbond any chance you'd be interested in reviewing / merging this change?