mirror of
https://github.com/Telecominfraproject/wlan-cloud-loadsim.git
synced 2025-11-01 02:57:55 +00:00
14 lines
272 B
Bash
Executable File
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 sslserver -CAfile ./testCA/cacert.pem "$target_pem"
|
|
|