add command to calculate days until cert expiration
This commit is contained in:
parent
8447963ff1
commit
48feef1d87
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
dat=$(openssl x509 -noout -enddate | cut -d= -f2)
|
||||
|
||||
echo $(( ($(date -d "$dat" '+%s') - $(date '+%s')) / 86400 ))
|
Loading…
Reference in New Issue