Initial commit
This commit is contained in:
parent
d80dc73607
commit
026f626dbe
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
# Check for the presence of the certificate file
|
||||
if [ ! -f "$1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Extract subjectAltName from the certificate
|
||||
openssl x509 -in "$1" -text -noout | grep -E -o "DNS:[^,]*" | sed 's/DNS://g' | tr -d ' ' | tr ',' ' ' | sort | tr '\n' ' '
|
||||
|
Loading…
Reference in New Issue