SHA-1
Cheat sheet · https://pcornel.dk/topic.php?topic=4710
Answer
SHA-1 produces a 160-bit hash. Practical collisions have been shown, so it is deprecated for certificates and signatures, though it still appears in legacy systems and Git.
Remember
- Collisions shown in practice.
- Deprecated for signatures.
- Still in legacy systems.
First checks
openssl x509 -in cert.pem -noout -text | grep 'Signature Algorithm'— sha1WithRSA?nmap --script ssl-enum-ciphers -p 443 <host> | grep -i sha1— legacy suitesgit config core.hashAlgorithm— git object format
Verify in this order
SHA-1 → collisions feasible
Where it usually breaks
First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4710