Skip to content

Commit

Permalink
Merge branch 'orgoj-cn_parse'
Browse files Browse the repository at this point in the history
  • Loading branch information
srvrco committed Feb 6, 2017
2 parents b1dbcde + e97c4a4 commit 1b748a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkssl
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ while IFS= read -r LINE; do
debug " --------------- domain ${DOMAIN}:${PORT} ${REMOTE_EXTRA}---------------------"
# shellcheck disable=SC2086
CERTINFO=$(echo | openssl s_client -servername "${DOMAIN}" -connect "${DOMAIN}:${PORT}" ${REMOTE_EXTRA} 2>/dev/null | openssl x509 2>/dev/null)
ISSUEDTO=$(echo "$CERTINFO" | openssl x509 -noout -subject 2>/dev/null|cut -d= -f 3-)
ISSUEDTO=$(echo "$CERTINFO" | openssl x509 -noout -subject 2>/dev/null| grep -Eo "/CN=[^/]+" | cut -c 5-)
[[ -z $ISSUEDTO ]] && ISSUEDTO="-"
debug "$ISSUEDTO"
ISSUER=$(echo "$CERTINFO" | openssl x509 -noout -issuer 2>/dev/null| grep -Eo "/CN=[a-zA-Z' 0-9]*"| cut -c 5-)
Expand Down

0 comments on commit 1b748a6

Please sign in to comment.