Код: Выделить всё
#!/bin/bash
echo | openssl s_client -servername $1 -connect $1:443 2>/dev/null | openssl x509 -noout -enddate
Код: Выделить всё
./hostssl.sh host
Код: Выделить всё
openssl x509 -in your_certificate.pem -noout -enddate
Код: Выделить всё
#!/bin/bash
echo | openssl s_client -servername $1 -connect $1:443 2>/dev/null | openssl x509 -noout -enddate
Код: Выделить всё
./hostssl.sh host
Код: Выделить всё
openssl x509 -in your_certificate.pem -noout -enddate