* [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location
@ 2025-04-17 19:05 Lance Fredrickson
2025-04-17 19:22 ` Lance Fredrickson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Lance Fredrickson @ 2025-04-17 19:05 UTC (permalink / raw)
To: buildroot; +Cc: Lance Fredrickson
From: Lance Fredrickson <lancethepants@gmail.com>
Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
---
package/libcurl/libcurl.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 2066ba0388..509feeab64 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -67,7 +67,8 @@ endif
ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
LIBCURL_DEPENDENCIES += openssl
LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
- --with-ca-path=/etc/ssl/certs
+ --with-ca-path=/etc/ssl/certs \
+ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
else
LIBCURL_CONF_OPTS += --without-openssl
endif
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location
2025-04-17 19:05 [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location Lance Fredrickson
@ 2025-04-17 19:22 ` Lance Fredrickson
2025-05-17 20:32 ` Peter Korsgaard
2026-02-04 13:14 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Lance Fredrickson @ 2025-04-17 19:22 UTC (permalink / raw)
To: buildroot
This is a patch I've carried for my project where I only keep the ca
bundle. The ca-certificates package does install the bundle and distros
like debian do specify a ca path & a ca bundle when configuring.
https://salsa.debian.org/debian/curl/-/blob/debian/unstable/debian/rules?ref_type=heads#L20
Lance
On 4/17/2025 1:05 PM, Lance Fredrickson wrote:
> From: Lance Fredrickson <lancethepants@gmail.com>
>
> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
> ---
> package/libcurl/libcurl.mk | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
> index 2066ba0388..509feeab64 100644
> --- a/package/libcurl/libcurl.mk
> +++ b/package/libcurl/libcurl.mk
> @@ -67,7 +67,8 @@ endif
> ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
> LIBCURL_DEPENDENCIES += openssl
> LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
> - --with-ca-path=/etc/ssl/certs
> + --with-ca-path=/etc/ssl/certs \
> + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
> else
> LIBCURL_CONF_OPTS += --without-openssl
> endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location
2025-04-17 19:05 [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location Lance Fredrickson
2025-04-17 19:22 ` Lance Fredrickson
@ 2025-05-17 20:32 ` Peter Korsgaard
2025-07-18 14:53 ` Lance Fredrickson
2026-02-04 13:14 ` Arnout Vandecappelle via buildroot
2 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2025-05-17 20:32 UTC (permalink / raw)
To: Lance Fredrickson; +Cc: buildroot
>>>>> "Lance" == Lance Fredrickson <lancethepants@gmail.com> writes:
> From: Lance Fredrickson <lancethepants@gmail.com>
> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
Why? What does that change?
> ---
> package/libcurl/libcurl.mk | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
> index 2066ba0388..509feeab64 100644
> --- a/package/libcurl/libcurl.mk
> +++ b/package/libcurl/libcurl.mk
> @@ -67,7 +67,8 @@ endif
> ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
> LIBCURL_DEPENDENCIES += openssl
> LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
> - --with-ca-path=/etc/ssl/certs
> + --with-ca-path=/etc/ssl/certs \
> + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
> else
> LIBCURL_CONF_OPTS += --without-openssl
> endif
> --
> 2.39.5
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location
2025-05-17 20:32 ` Peter Korsgaard
@ 2025-07-18 14:53 ` Lance Fredrickson
0 siblings, 0 replies; 5+ messages in thread
From: Lance Fredrickson @ 2025-07-18 14:53 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: buildroot
I somehow missed this email.
On 5/17/2025 2:32 PM, Peter Korsgaard wrote:
>>>>>> "Lance" == Lance Fredrickson <lancethepants@gmail.com> writes:
> > From: Lance Fredrickson <lancethepants@gmail.com>
> > Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
>
> Why? What does that change?
This just adds the ability to also verify against ca-certificates.crt. I
remove all other certs and just keep this one.
Debian defines it as well.
https://salsa.debian.org/debian/curl/-/blob/debian/unstable/debian/rules?ref_type=heads#L20
And the cert bundle is also installed.
# Install the certificates bundle
$(INSTALL) -D -m 644 $(BUILD_DIR)/ca-certificates.crt \
$(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt
>
>> ---
> > package/libcurl/libcurl.mk | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> > diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
> > index 2066ba0388..509feeab64 100644
> > --- a/package/libcurl/libcurl.mk
> > +++ b/package/libcurl/libcurl.mk
> > @@ -67,7 +67,8 @@ endif
> > ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
> > LIBCURL_DEPENDENCIES += openssl
> > LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
> > - --with-ca-path=/etc/ssl/certs
> > + --with-ca-path=/etc/ssl/certs \
> > + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
> > else
> > LIBCURL_CONF_OPTS += --without-openssl
> > endif
> > --
>
> > 2.39.5
>
> > _______________________________________________
> > buildroot mailing list
> > buildroot@buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location
2025-04-17 19:05 [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location Lance Fredrickson
2025-04-17 19:22 ` Lance Fredrickson
2025-05-17 20:32 ` Peter Korsgaard
@ 2026-02-04 13:14 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-02-04 13:14 UTC (permalink / raw)
To: Lance Fredrickson, buildroot
Hi Lance,
On 17/04/2025 21:05, Lance Fredrickson wrote:
> From: Lance Fredrickson <lancethepants@gmail.com>
>
> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
Applied to master, thanks. I extended the commit message quite a bit.
package/libcurl: also specify the CA bundle location
When given a certificate directory with --with-ca-path, curl doesn't
list the files in that directory. Instead, it uses the certificate hash
to directly open the requested CA certificate. Therefore, putting a
bundle in that directory and removing all the individual certificates is
not possible.
In order to support use of the bundle, a separate configuration option
--with-ca-bundle is needed. With this option, it is possible to remove
the individual certificates and include just the bundle, which reduces
the size of the root filesystem a bit.
Note that the bundle is generated by the ca-certificates package, which
also installs the individual certificates and the hash symlinks. It
keeps both individual certificates and the bundle in the target.
Regards,
Arnout
> ---
> package/libcurl/libcurl.mk | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
> index 2066ba0388..509feeab64 100644
> --- a/package/libcurl/libcurl.mk
> +++ b/package/libcurl/libcurl.mk
> @@ -67,7 +67,8 @@ endif
> ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
> LIBCURL_DEPENDENCIES += openssl
> LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
> - --with-ca-path=/etc/ssl/certs
> + --with-ca-path=/etc/ssl/certs \
> + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
> else
> LIBCURL_CONF_OPTS += --without-openssl
> endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-04 13:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 19:05 [Buildroot] [PATCH] package/libcurl: Also specify the CA bundle location Lance Fredrickson
2025-04-17 19:22 ` Lance Fredrickson
2025-05-17 20:32 ` Peter Korsgaard
2025-07-18 14:53 ` Lance Fredrickson
2026-02-04 13:14 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox