Hi
Thank you for your feedback and it is a significant issue (not only from smartctl tool)
Several events occurred so that since last September 30th the firmware fails to download the latest hard drives database for smartctl :whistle
- First now this base is only available from an URL using https and the download site does a redirection if you try to use an http URL
- the download server uses let's encrypt CA chain to encrypt its responses on client requests
- but since September 30th, a cross-signed CA certificate (DST Root CA X3) is no longer valid
- and download server uses now the new root CA (ISRG Root X1) of let's encrypt CA chain
With the firmware all should have worked fine after updating the CA-bundle file (main setup menu => tab "other settings"), but not :whistle
why, there is an additional issue with ISRG certificate and openssl
If you provide an API or have to support IoT devices, you’ll need to make sure of two things:
(1) all clients of your API must trust ISRG Root X1 (not just DST Root CA X3),
and (2) if clients of your API are using OpenSSL, they must use version 1.1.0 or later.
In OpenSSL 1.0.x, a quirk in certificate verification means that even clients that trust ISRG Root X1 will fail when presented with the Android-compatible certificate chain we are recommending by default.
:sob badly it is our case :hairpull
currently the firmware uses as openssl version 1.0.1m
So even if you have an updated CA-bundle, you can never valid the server certificate.
The big issue is many servers use let's encrypt CA chain and now we have to upgrade openssl. In the firmware there are many dependencies related to openssl (as soon as a lib, a binary and also add-on require a crypto support). So a huge works with many compilations.
More information :
https://letsencrypt.org/fr/docs/dst-root-ca-x3-expiration-september-2021/Currently, the only way to get the hard drives database is to disable the check certificate feature with curl/wget binaries. So attached a patched version of update-smart-drivedb script
How to install the patched version:
- open a shell window
- run the command
- Code: Select all
plugout download 6851
tar -xf '/tmp/fvdw-sl-xx-x_no-ca-check-smartctl_22oct2021.tgz' -C /
then try again to update the hard drive database