Skip to content

Commit 78dd0a1

Browse files
authored
Merge pull request #2671 from javabrett/javabrett/improve-ev-detection
Improved (experimental) Extended Validation (EV) certificate identification
2 parents 102e4fb + 352ed61 commit 78dd0a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

testssl.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9637,13 +9637,15 @@ certificate_info() {
96379637
jsonID="cert_certificatePolicies_EV"
96389638
# only the first one, seldom we have two
96399639
policy_oid=$(awk '/ .Policy: / { print $2 }' <<< "$cert_txt" | awk 'NR < 2')
9640-
if grep -Eq 'Extended Validation|Extended Validated|EV SSL|EV CA' <<< "$issuer" || \
9640+
if grep -Eq 'Extended Validation|Extended Validated|EV SSL|EV CA|EV TLS' <<< "$issuer" || \
9641+
[[ 2.23.140.1.1 == "$policy_oid" ]] || \
96419642
[[ 2.16.840.1.114028.10.1.2 == "$policy_oid" ]] || \
96429643
[[ 2.16.840.1.114412.1.3.0.2 == "$policy_oid" ]] || \
96439644
[[ 2.16.840.1.114412.2.1 == "$policy_oid" ]] || \
96449645
[[ 2.16.578.1.26.1.3.3 == "$policy_oid" ]] || \
96459646
[[ 1.3.6.1.4.1.17326.10.14.2.1.2 == "$policy_oid" ]] || \
96469647
[[ 1.3.6.1.4.1.17326.10.8.12.1.2 == "$policy_oid" ]] || \
9648+
[[ 1.3.6.1.4.1.38064.1.3.1.4 == "$policy_oid" ]] || \
96479649
[[ 1.3.6.1.4.1.13177.10.1.3.10 == "$policy_oid" ]] ; then
96489650
out "yes "
96499651
fileout "${jsonID}${json_postfix}" "OK" "yes"

0 commit comments

Comments
 (0)