Skip to content

Instantly share code, notes, and snippets.

@rajeswari199
rajeswari199 / verifysslcertificate.sh
Last active February 10, 2020 09:09
Outputs the private key validity for the provided SSL certificate.
#!/bin/bash
case $1 in
-[h?] | --help)
cat <<-____HALP
Usage: ${0##*/} [ --help ]
Execute it with the command: ./${0##*/} your_certificate.crt your_private_key.crt
____HALP
exit 0;;
esac