net: lwip: root certificates
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 17 repliesIn review
- v15 patches 24 repliesSuperseded
Changes in v2 from the cover letter
- Drop PEM support. It is unnecessary since conversion from PEM to DER is easy, and PEM takes more space in memory. Another reason is the ugly hack requiring to allocate one more byte for the null terminator in case the file is PEM (therefore, text).
- Add 'wget cacert none|optional|required'
- Replace '#if defined CONFIG_X' with '#if CONFIG_IS_ENABLED(X)' in net/lwip/wget.c Do NOT replace '#if defined(CONFIG_X)' in net/net-lwip.c for consistency with how other symbols are treated in that file.
- Make builtin_cacert const
- Make cacert_size static
- BUILTIN_CACERT selects BUILD_BIN2C
- Add documentation in doc/cmd/wget.rst
- Apply review tags
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: lwip: extend wget to support CA (root) certificatescmd/ cmd/ net/ | +121 | 7 replies | |
| 2/6 | lwip: tls: enforce checking of server certificates based on CA availabilitylib/ lib/ | +2 | 0 replies | |
| 3/6 | lwip: tls: warn when no CA exists amd log certificate validation errorslib/ | +6 | 0 replies | |
| 4/6 | net: lwip: add support for built-in root certificatescmd/ cmd/ net/ +1 more | +72 | 9 replies | |
| 5/6 | doc: cmd: wget: document cacert subcommanddoc/ | +80 | 1 reply | |
| 6/6 | configs: qemu_arm64_lwip_defconfig: enable WGET_CACERTconfigs/ | +1 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Ilias Apalodimas |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | A-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] net: lwip: root certificates
This series adds support for HTTP server authentication using root (CA) certificates.
As a first step, the wget command is extended to support a sub-command:
cacert <addr> <size>. The memory region shall contain the CA certificates. With this, it is possible to load the certificates from storage or get them from the network for example, which is convenient for testing at least. The Kconfig symbol for this feature is WGET_CACERT=y.
Then new Kconfig symbols are added to support providing the certificates at build time as a DER encoded X509 collection: WGET_BUILTIN_CACERT=y and WGET_BUILTIN_CACERT_PATH=<some path>.
An example of how to use this feature is given in patch "doc: cmd: wget:
document cacert subcommand".
Changes in v2:
- Drop PEM support. It is unnecessary since conversion from PEM to DER is easy, and PEM takes more space in memory. Another reason is the ugly hack requiring to allocate one more byte for the null terminator in case the file is PEM (therefore, text).
- Add 'wget cacert none|optional|required'
- Replace '#if defined CONFIG_X' with '#if CONFIG_IS_ENABLED(X)' in net/lwip/wget.c Do NOT replace '#if defined(CONFIG_X)' in net/net-lwip.c for consistency with how other symbols are treated in that file.
- Make builtin_cacert const
- Make cacert_size static
- BUILTIN_CACERT selects BUILD_BIN2C
- Add documentation in doc/cmd/wget.rst
- Apply review tags
Jerome Forissier (6):
net: lwip: extend wget to support CA (root) certificates
lwip: tls: enforce checking of server certificates based on CA
availability
lwip: tls: warn when no CA exists amd log certificate validation
errors
net: lwip: add support for built-in root certificates
doc: cmd: wget: document cacert subcommand
configs: qemu_arm64_lwip_defconfig: enable WGET_CACERT
cmd/Kconfig | 22 +++ cmd/net-lwip.c | 21 ++- configs/qemu_arm64_lwip_defconfig | 1 + doc/usage/cmd/wget.rst | 82 +++++++++- .../src/apps/altcp_tls/altcp_tls_mbedtls.c | 9 +- .../lwip/apps/altcp_tls_mbedtls_opts.h | 6 - net/lwip/Makefile | 6 + net/lwip/wget.c | 141 +++++++++++++++++- 8 files changed, 273 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0