From 8593cbbb14da754ea4147cab7d2db11e24f1f41c Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 10 Nov 2022 11:37:58 -0800 Subject: [PATCH] Fix #2249 OpenSSL uses "sha1WithRSAEncryption" to represent 1.2.840.113549.1.1.5 and "sha1WithRSA" to represent 1.3.14.3.2.29. While 1.2.840.113549.1.1.5 is generally recognized as the "standard" OID for RSA with SHA-1 (see, for example, RFC 3279), 1.3.14.3.2.29 has been used in some places as well (https://codereview.chromium.org/1223763002, https://bugzilla.mozilla.org/show_bug.cgi?id=1042479, pyca/cryptography#3160) --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index ab0f676..c2b4dcd 100755 --- a/testssl.sh +++ b/testssl.sh @@ -8278,7 +8278,7 @@ certificate_info() { out "$indent" ; pr_bold " Signature Algorithm " jsonID="cert_signatureAlgorithm" case $cert_sig_algo in - sha1WithRSAEncryption) + sha1WithRSA|sha1WithRSAEncryption) pr_svrty_medium "SHA1 with RSA" if [[ "$SERVICE" == HTTP ]] || "$ASSUME_HTTP"; then out " -- besides: users will receive a "; pr_svrty_high "strong browser WARNING"