]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: support embedding a CA bundle
authorViktor Szakats <commit@vsz.me>
Sat, 29 Jun 2024 01:30:14 +0000 (03:30 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 3 Aug 2024 07:22:26 +0000 (09:22 +0200)
commit8a3740bc8e558b9a9d4a652b74cf27a0961d7010
treed65eebdd101b0ec1d9fe6447d02aeae238836bda
parent87aa4ebd821ebae0023df8658360c724efcf5e00
curl: support embedding a CA bundle

Add the ability to embed a CA bundle into the curl binary. It is used
when no other runtime or build-time option set one.

This helps curl-for-win macOS and Linux builds to run standalone, and
also helps Windows builds to avoid picking up the CA bundle from an
arbitrary (possibly world-writable) location (though this behaviour is
not currently disablable).

Usage:
- cmake: `-DCURL_CA_EMBED=/path/to/curl-ca-bundle.crt`
- autotools: `--with-ca-embed=/path/to/curl-ca-bundle.crt`
- Makefile.mk: `CURL_CA_EMBED=/path/to/curl-ca-bundle.crt`

Also add new command-line option `--dump-ca-embed` to dump the embedded
CA bundle to standard output.

Closes #14059
26 files changed:
CMakeLists.txt
acinclude.m4
configure.ac
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/ca-native.md
docs/cmdline-opts/cacert.md
docs/cmdline-opts/capath.md
docs/cmdline-opts/dump-ca-embed.md [new file with mode: 0644]
docs/cmdline-opts/proxy-ca-native.md
docs/cmdline-opts/proxy-cacert.md
docs/cmdline-opts/proxy-capath.md
docs/options-in-versions
projects/checksrc.bat
src/.gitignore
src/CMakeLists.txt
src/Makefile.am
src/Makefile.mk
src/mk-file-embed.pl [new file with mode: 0755]
src/tool_getparam.c
src/tool_getparam.h
src/tool_help.c
src/tool_libinfo.c
src/tool_libinfo.h
src/tool_listhelp.c
src/tool_operate.c
src/tool_parsecfg.c