CompTIA Cloud+ CV0-003 Practice Question
A system administrator is troubleshooting connectivity issues between a cloud-based application and a third-party API over HTTPS. While inspecting the issue, she needs to confirm if the SSL certificate presented by the API endpoint is valid and has not expired. Which of the following commands should the administrator execute to retrieve and verify the SSL certificate details directly from the command line?
openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem
openssl s_client -connect api.example.com:443
openssl x509 -in cert.pem -text
openssl req -new -key domain.key -out domain.csr