Skip to contentSkip to conversation

package/libcurl: fix missing CA bundle when wolfssl is SSL/TLS provider

PATCH Applied Dimi Tomov 3 participants 3 messages Jun 5, 2022 – Jun 9, 2022

lore
Share & tools
lore

Dimi Tomov

author
#0 lore raw

PATCH 1/1 package/libcurl: fix missing CA bundle when wolfssl is SSL/TLS provider

From: Dimitar Tomov <[email protected]>

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.

---
 package/libcurl/libcurl.mk | 1 +
 1 file changed, 1 insertion(+)
package/libcurl/libcurl.mk +1 -0
index 15943f7512..11f1e4de59 100644
@@ -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
Signature · 6 lines
2.27.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Dimitar, All,

On 2022-06-05 15:47 +0300, Dimi Tomov spake thusly:

Quoted 9 lines

From: Dimitar Tomov <[email protected]>

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.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 package/libcurl/libcurl.mk | 1 +
 1 file changed, 1 insertion(+)
package/libcurl/libcurl.mk +1 -0
index 15943f7512..11f1e4de59 100644
@@ -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
Signature · 6 lines
2.27.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dimi Tomov
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dimi" == Dimi Tomov <[email protected]> writes:

From: Dimitar Tomov <[email protected]>
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.

Committed to 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot