Comments (3)
For ease of debugging, it's generally helpful if you paste the certificate without teh leading ...
from the Python repl.
That said, I can tell you what the problem is in this case: The rules of DER specify that when a field is encoded, if it has it's default value, that it must be omitted from the final output. In this case you have a certificate with an extension whose critical field is explicitly encoded as false, when that is the default value.
In short, whatever created this certificate is emitting invalid certs.
from cryptography.
https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/hermes/certs/test/gemalto.pem
The certificate extracted from chromium os, it's is eSIM certificate issuer.
from cryptography.
I suggest someone take it up with teh issuer. There's no good reason in 2024 (or 2017, when this appears to have been issued), to be creating semantically invalid DER certificates.
from cryptography.
Related Issues (20)
- Use After Free vulnerability still coming up in 42.0.8 HOT 2
- to decrypt my excel password HOT 1
- [RFC] TSP / RFC 3161 support HOT 1
- Help/Feature: common introspection methods for asymmetric key types HOT 10
- AWS Glue: ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._openssl'. HOT 8
- aead subpackage in ciphers not load by default HOT 1
- Unable to build on 3.14 no-GIL HOT 1
- Add AEGIS ciphers HOT 3
- getting errors installing or importing cryptography on AWS Lambda HOT 4
- ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.ec' HOT 7
- x509.NoticeReference(organization, notice_numbers)Function Error HOT 9
- Migrate to declarative modules HOT 1
- VerificationError should indicate which cert is being checked
- Extension errors should indicate the extension that is at issue
- x509 verification fails on critical EKU HOT 3
- FR: Allow clients to set extension policies for x.509 verification HOT 1
- ocsp response contains offset-naive datetime objects HOT 6
- KBKDFCMAC produces unexpected results when `llen=0` HOT 3
- Please enhance the error message when loading the wrong kind of PEM file
- FreeBSD bug exposes potential logic issue with fips support check HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptography.