From 97e7c6d82fadd52e88ea9db8f19f714a627cd942 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Tue, 29 Sep 2026 20:35:33 +0200 Subject: [PATCH] package/ca-certificates: Replace c_rehash with openssl rehash The upcoming bump of libopenssl to 4.0.2 removes the c_rehash script: https://openssl-library.org/post/2026-04-14-openssl-40-final-release/ https://github.com/openssl/openssl/blob/openssl-4.0.2/CHANGES.md#openssl-40 "* Removed `c_rehash` script tool. Use `openssl rehash` instead." Note that c_rehash was already described as obsolete in the release notes for OpenSSL 3.0.2 and 3.0.3. Signed-off-by: Bernd Kuhls Cc: Martin Bark [Fiona: add note about how long c_rehash has been considered obsolete] Signed-off-by: Fiona Klute --- package/ca-certificates/ca-certificates.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/ca-certificates/ca-certificates.mk b/package/ca-certificates/ca-certificates.mk index f5675b754d..0f88df3eec 100644 --- a/package/ca-certificates/ca-certificates.mk +++ b/package/ca-certificates/ca-certificates.mk @@ -36,7 +36,7 @@ define CA_CERTIFICATES_GEN_BUNDLE done >$(BUILD_DIR)/ca-certificates.crt # Create symlinks to the certificates by their hash values - $(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs + $(HOST_DIR)/bin/openssl rehash $(TARGET_DIR)/etc/ssl/certs # Install the certificates bundle $(INSTALL) -D -m 644 $(BUILD_DIR)/ca-certificates.crt \ @@ -65,7 +65,7 @@ define HOST_CA_CERTIFICATES_INSTALL_CMDS done >$(BUILD_DIR)/ca-certificates.crt # Create symlinks to the certificates by their hash values - $(HOST_DIR)/bin/c_rehash $(HOST_DIR)/etc/ssl/certs + $(HOST_DIR)/bin/openssl rehash $(HOST_DIR)/etc/ssl/certs # Install the certificates bundle $(INSTALL) -D -m 644 $(BUILD_DIR)/ca-certificates.crt \