Skip to content

Commit 6b5ce68

Browse files
authored
More OpenSSL compatibility fixes
This commit fixes yet another issue with using OpenSSL 3.X with the 3.0 branch. When $OPENSSL is used to obtain a fingerprint, OpenSSL 3.X prepends the fingerprint with "sha1" or "sha256" rather than "SHA1" or "SHA256".
1 parent 395907a commit 6b5ce68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

testssl.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8181,7 +8181,9 @@ determine_cert_fingerprint_serial() {
81818181
result="${result//serial=}"
81828182
result="${result//:/}"
81838183
result="${result//SHA1 /}"
8184+
result="${result//sha1 /}"
81848185
result="${result//SHA256 /}"
8186+
result="${result//sha256 /}"
81858187
# When the serial number is too large we'll get a 0x0a LF after 70 ASCII chars (see #2010).
81868188
# Thus we clean them here so that it is displayed correctly.
81878189
result="${result/[$'\n\r']/}"

0 commit comments

Comments
 (0)