Hash function for address key exchange Obsolete hash function SHA224

Niels90

Verified User
Joined
Apr 22, 2016
Messages
31
How can I resolve this message in da I have recently started receiving this message
Screenshot_20260421_222147_Chrome.jpg
 
Add this to /etc/httpd/conf/extra/httpd-ssl.conf:

SSLOpenSSLConfCmd SignatureAlgorithms RSA+SHA256:RSA+SHA384:rsa_pss_rsae_sha256:rsa_pss_rsae_sha384
 
## Disable SHA-1 and SHA-224 signature algorithms server-wide

On AlmaLinux 8/9, system-wide crypto policies can be used to disable SHA-1 and SHA-224 signature algorithms for applications that use the system crypto-policy framework.

The built-in `NO-SHA1` policy module already exists:

Code:
/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod

You need to create a custom module for SHA-224:

Code:
cat > /etc/crypto-policies/policies/modules/NO-SHA224.pmod <<'EOF'
# Disable SHA-224 signature algorithms
sign = -*-SHA2-224
EOF

Apply the combined crypto policy:

Code:
update-crypto-policies --set DEFAULT:NO-SHA1:NO-SHA224


Verify the active policy:

Code:
update-crypto-policies --show

Expected output:

Code:
DEFAULT:NO-SHA1:NO-SHA224

You can also verify the active signature algorithms:

Code:
grep '^sign =' /etc/crypto-policies/state/CURRENT.pol

SHA-1 and SHA-224 signature algorithms should no longer be present, while SHA-256, SHA-384 and SHA-512 remain available.

### Reboot the server

The system-wide crypto policy is applied when applications start. Reboot the server so that all running services start with the new policy:

Code:
reboot


### Do NOT use `FUTURE` for this purpose

Do **not** switch the entire server to:

update-crypto-policies --set FUTURE

if the goal is only to disable SHA-1 and SHA-224 signature algorithms.

`FUTURE` is a substantially stricter crypto policy. It changes more than just the allowed signature algorithms and can introduce compatibility problems with older clients, mail servers, applications and other services.

Using:

DEFAULT:NO-SHA1:NO-SHA224

keeps the normal `DEFAULT` policy and makes the targeted change of removing SHA-1 and SHA-224 signature algorithms without applying the additional restrictions of `FUTURE`.
 
Back
Top