[Buildroot] [PATCH 1/1] package/libcurl: fix missing CA bundle when wolfssl is SSL/TLS provider
Dimi Tomov
dimi at tpm.dev
Sun Jun 5 12:47:49 UTC 2022
From: Dimitar Tomov <dimi at tpm.dev>
Without CA bundle curl can not verify the remote peer and work with https.
This is fixed by adding a config option pointing to the default location
for CA bundle in buildroot. Alternatives like OpenSSL and MbedTLS use the
same path, however the wolfSSL build options for libcurl did not include
this path until now.
Signed-off-by: Dimitar Tomov <dimi at tpm.dev>
---
package/libcurl/libcurl.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 15943f7512..11f1e4de59 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -77,6 +77,7 @@ endif
ifeq ($(BR2_PACKAGE_LIBCURL_WOLFSSL),y)
LIBCURL_CONF_OPTS += --with-wolfssl=$(STAGING_DIR)/usr
+LIBCURL_CONF_OPTS += --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
LIBCURL_DEPENDENCIES += wolfssl
else
LIBCURL_CONF_OPTS += --without-wolfssl
--
2.27.0
More information about the buildroot
mailing list