Files
wlan-cloud-loadsim/certs/scripts/verify-client.sh
2020-10-20 16:03:11 -07:00

14 lines
272 B
Bash
Executable File

#!/bin/bash
target_pem="${1}"
if [[ ! -f "${target_pem}" ]]; then
echo "Usage: $0 BASE64_CERTIFICATE_FILE" >&2
exit 1
fi
openssl x509 -subject -issuer -noout -dates -in "$target_pem"
openssl verify -purpose sslclient -CAfile ./testCA/cacert.pem "$target_pem"