Save the certificate to publci_cert.pem
openssl s_client -connect <https_service>:443 2>/dev/null \ | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > public_cert.pem
Show details of the certificate
openssl x509 -in public_cert.pem -text -noout
Save the certificate to publci_cert.pem
openssl s_client -connect <https_service>:443 2>/dev/null \ | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > public_cert.pem
Show details of the certificate
openssl x509 -in public_cert.pem -text -noout