When verifying the SSL certificate expiration date on Edge SWG appliance using the openssl s_client command, the output displays incorrect dates that do not match the certificates stored on the appliance.
For example, the following command returns false values for certificate validity:
echo | openssl s_client -servername <SG-FQDN> -connect <SG-FQDN>:443 | openssl x509 -text -noout
Edge SWG
The command is connecting to port 443, which may be associated with a different service (such as a forwarding or reverse proxy service) rather than the Management Console (HTTPS-Console) service.
To retrieve the correct certificate information for the Management Console, you must specify the correct management port (typically 8082).
Review this command before running it:
echo | openssl s_client -servername <SG-FQDN> -connect <SG-FQDN>:8082 | openssl x509 -text -noout
Alternatively, the dates may be viewed from:
# show ssl keyring <keyring_name>