Код: Выделить всё
#!/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