File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ function print_cert_info {
10
10
subject=" $( openssl x509 -noout -subject -in " $1 " | sed -n ' s/.*CN = \([a-z0-9.-]*\)/- \1/p' ) "
11
11
san_str=" $( openssl x509 -text -in " $1 " | grep ' DNS:' ) "
12
12
13
+ case " $issuer " in
14
+ R3 | R4 | E1 | E2)
15
+ issuer=" Let's Encrypt $issuer "
16
+ ;;
17
+
18
+ * )
19
+ ;;
20
+ esac
21
+
13
22
echo " Certificate was issued by $issuer "
14
23
if [[ " $2 " == " expired" ]]; then
15
24
echo " Certificate was valid until $enddate "
@@ -35,7 +44,7 @@ for cert in /etc/nginx/certs/*/fullchain.pem; do
35
44
[[ -e " $cert " ]] || continue
36
45
if [[ -e " ${cert% fullchain.pem} chain.pem" ]]; then
37
46
# Verify the certificate with OpenSSL.
38
- if verify=$( openssl verify -CAfile " ${cert% fullchain.pem} chain.pem" " $cert " 2>&1 ) ; then
47
+ if verify=$( openssl verify -untrusted " ${cert% fullchain.pem} chain.pem" " $cert " 2>&1 ) ; then
39
48
echo " $verify "
40
49
# Print certificate info.
41
50
print_cert_info " $cert "
You can’t perform that action at this time.
0 commit comments