From 7c70c3d352f7e8f16ed799f03957ee87840da4e6 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 24 Jun 2026 19:22:36 +1000 Subject: [PATCH] Fix handling of rh-allow-sha1-signatures on Cygwin The format of openssl.cnf has changed, so append to it instead of trying to insert into it. Test that openssl can sign RSA with SHA1 before proceeding. --- .github/setup_ci.sh | 23 +++++++++++++++++++++-- .github/workflows/c-cpp.yml | 3 ++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh index 63c61f9a0..99df2181e 100755 --- a/.github/setup_ci.sh +++ b/.github/setup_ci.sh @@ -27,10 +27,29 @@ case "$host" in icacls regress /c /t /q /grant 'BUILTIN\Administrators:(RX)' echo "Modifiled ACLs" icacls regress + echo Enabling OpenSSL rh-allow-sha1-signatures for unit tests. cp /etc/pki/tls/openssl.cnf /etc/pki/tls/openssl.cnf.bak - sed -i -e '/\[ default_modules \]/a alg_section = evp_properties\n[evp_properties]\nrh-allow-sha1-signatures = yes\n' /etc/pki/tls/openssl.cnf - diff -u /etc/pki/tls/openssl.cnf.bak /etc/pki/tls/openssl.cnf + cat >>/etc/pki/tls/openssl.cnf <