Skip to content

Commit a6490f1

Browse files
committed
fix: split openssl output at = character
1 parent 72962d2 commit a6490f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

70-tls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ output=""
5858
output+=" Domain | Status\n"
5959
for i in "${!certificates[@]}"; do
6060
cert="${certificates[$i]}"
61-
certname=$(openssl x509 -subject -noout -in "$cert" | cut -d " " -f3)
61+
certname=$(openssl x509 -subject -noout -in "$cert" | cut -d "=" -f3)
6262
exp_date=$(expiry_date "$cert")
6363
expires=$(unix_date "$exp_date")
6464
now=$(unix_date "now")

0 commit comments

Comments
 (0)