Comments (6)
Unfortunately mbedTLS is very blunt here: instead of checking unknown critical extensions at the point of use, it refuses to load any certificate with such extensions from a file or memory buffer, unless compiled with MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION.
Therefore since TLS-ALPN-01 validation requires a new critical extension that mbedTLS does not know about: https://tools.ietf.org/html/rfc8737#section-6.1 you simply can not use ualpn with mbedTLS unless you build it with that option.
You can exclude ualpn from the build by adding the --without-ualpn option to configure. On buildroot ualpn has its own enable menu option (disabled by default): https://git.buildroot.net/buildroot/tree/package/uacme/Config.in
Do you think there is any value in adding a test in configure.ac to disable ualpn automatically unless mbedTLS is built with MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION?
from uacme.
Thanks for the clarification, I think that you can let your code like this for now.
I'll try to cook a patch to enable MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION in mbedtls/Config.in
Then, I'll select this new option if mbedtls is enabled and BR2_PACKAGE_UACME_UALPN is set. I'll copy/paste your explanation in the Config.in so the user is aware of the potential security risk. I think that the best option for the end user.
from uacme.
Ok, thanks. I'm closing the issue then,
from uacme.
@ndilieto in the end it's possible to use mbedtls for ualpn ? openwrt has now mbedtls-2.16.12
from uacme.
Yes, but you either need mbedtls version 2.23.0 or higher, or you must configure 2.16 with MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
Mbed-TLS/mbedtls#3243 (comment)
from uacme.
thanks, I'll try to push for updated version
from uacme.
Related Issues (20)
- uacme.sh can generate invalid challenge due to echo -n HOT 1
- Incompatibility with Mac OS X Monterrey HOT 1
- Return code from --version should probably be 0 HOT 1
- 1.7.1 release tarball is missing configure script HOT 1
- Works only on POSIX filesystems: hardlink required HOT 1
- chain and fullchain.pem HOT 4
- Best way to ensure cert.pem is world readable? HOT 2
- Tests
- Debian package uses libcurl3-gnutls but OpenWrt use libcurl4 HOT 2
- Specify which network interface to use for ACME requests HOT 7
- Security issue in uacme.sh HOT 1
- Set CA bundle to verify ACME Server against HOT 1
- Feature support for ACME Renewal Information (ARI)
- Password files HOT 1
- How to find the account id of my letsencrypt account HOT 1
- run hooks parallel HOT 1
- Wrong exit code from ualpn in client mode
- ACME Auto Discovery / DNS CAA records HOT 1
- ZeroSSL keeps returning status:invalid for one out of two authorization request. Expects a retry? HOT 2
- 1.7.5 cross compile failure HOT 3
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 uacme.