Skip to content

Commit 93ae5d7

Browse files
authored
Merge pull request #3021 from dcooper16/missing_sigschemes
Add missing TLS signature schemes
2 parents e3ec72a + 000a5c4 commit 93ae5d7

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

testssl.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8517,7 +8517,7 @@ get_server_certificate() {
85178517
elif [[ "$1" =~ tls1_3_RSA ]]; then
85188518
tls_sockets "04" "$TLS13_CIPHER" "all+" "00,12,00,00, 00,05,00,05,01,00,00,00,00, 00,0d,00,16,00,14,08,04,08,05,08,06,04,01,05,01,06,01,02,01,08,09,08,0a,08,0b"
85198519
elif [[ "$1" =~ tls1_3_ECDSA ]]; then
8520-
tls_sockets "04" "$TLS13_CIPHER" "all+" "00,12,00,00, 00,05,00,05,01,00,00,00,00, 00,0d,00,0a,00,08,04,03,05,03,06,03,02,03"
8520+
tls_sockets "04" "$TLS13_CIPHER" "all+" "00,12,00,00, 00,05,00,05,01,00,00,00,00, 00,0d,00,10,00,0e,04,03,05,03,06,03,02,03,08,1a,08,1b,08,1c"
85218521
elif [[ "$1" =~ tls1_3_EdDSA ]]; then
85228522
tls_sockets "04" "$TLS13_CIPHER" "all+" "00,12,00,00, 00,05,00,05,01,00,00,00,00, 00,0d,00,06,00,04,08,07,08,08"
85238523
elif [[ "$1" =~ tls1_3_MLDSA ]]; then
@@ -9209,11 +9209,15 @@ certificate_transparency() {
92099209
if [[ "$tls_version" == 0304 ]]; then
92109210
ciphers=", 00,c6, 00,c7, 13,01, 13,02, 13,03, 13,04, 13,05, c0,b4, c0,b5"
92119211
if [[ "$cipher" == tls1_3_RSA ]]; then
9212-
extra_extns=", 00,0d,00,10,00,0e,08,04,08,05,08,06,04,01,05,01,06,01,02,01"
9212+
extra_extns=", 00,0d,00,16,00,14,08,04,08,05,08,06,04,01,05,01,06,01,02,01,08,09,08,0a,08,0b"
92139213
elif [[ "$cipher" == tls1_3_ECDSA ]]; then
9214-
extra_extns=", 00,0d,00,0a,00,08,04,03,05,03,06,03,02,03"
9214+
extra_extns=", 00,0d,00,10,00,0e,04,03,05,03,06,03,02,03,08,1a,08,1b,08,1c"
92159215
elif [[ "$cipher" == tls1_3_SM2 ]]; then
92169216
extra_extns=", 00,0d,00,04,00,02,07,08"
9217+
elif [[ "$cipher" == tls1_3_EdDSA ]]; then
9218+
extra_extns=", 00,0d,00,06,00,04,08,07,08,08"
9219+
elif [[ "$cipher" == tls1_3_MLDSA ]]; then
9220+
extra_extns=", 00,0d,00,08,00,06,09,04,09,05,09,06"
92179221
else
92189222
return 1
92199223
fi
@@ -16458,10 +16462,10 @@ prepare_tls_clienthello() {
1645816462
else
1645916463
extension_signature_algorithms="
1646016464
00, 0d, # Type: signature_algorithms , see RFC 8446
16461-
00, 2a, 00, 28, # lengths
16465+
00, 30, 00, 2e, # lengths
1646216466
04,03, 05,03, 06,03, 08,04, 08,05, 08,06, 04,01, 05,01,
1646316467
06,01, 08,09, 08,0a, 08,0b, 08,07, 08,08, 02,01, 02,03,
16464-
07,08, 09,04, 09,05, 09,06"
16468+
07,08, 09,04, 09,05, 09,06, 08,1a, 08,1b, 08,1c"
1646516469
fi
1646616470

1646716471
extension_heartbeat="

0 commit comments

Comments
 (0)