You should be able to use OpenSSL for your purpose:
echo | openssl s_client -showcerts -servername gnupg.org -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -text
That command connects to the desired website and pipes the certificate in PEM format on to another openssl command that reads and parses the details.
(Note that “redundant” -servername
parameter is necessary to make openssl
do a request with SNI support.)
Related Posts:
- What exactly is cacert.pem for?
- How to disable cURL SSL certificate verification
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- What is .crt and .key files and how to generate them?
- NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked
- https connection using CURL from command line
- How to generate a self-signed SSL certificate using OpenSSL?
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates
- Java Keytool error after importing certificate , “keytool error: java.io.FileNotFoundException & Access Denied”
- Is it safe to use sslverify => true for with wp_remote_get/wp_remote_post
- How to send user data from one website to another
- how to download the ssl certificate from a website?
- Is there a reason to use an SSL certificate other than Let’s Encrypt’s free SSL?
- Does each subdomain need it’s own SSL certificate?
- Generating a self-signed cert with openssl that works in Chrome 58
- How to install OpenSSL in windows 10?
- SSL Error: unable to get local issuer certificate
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- “ssl module in Python is not available” when installing package with pip3
- Curl command for https ( SSL )
- Convert .pem to .crt and .key
- Simple Java HTTPS server
- Received fatal alert: handshake_failure through SSLHandshakeException
- HTTPS connection Python
- cURL error 60: SSL certificate: unable to get local issuer certificate
- OpenSSL: unable to verify the first certificate for Experian URL
- SSL CA cert (path? access rights?)
- ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome
- urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- How do you sign a Certificate Signing Request with your Certification Authority?
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- WordPress wp-admin https redirect loop
- Howto force SSL for all requests?
- Local version of a WordPress site – SSL/HTTPS enforced?
- bloginfo() and get_template_directory_uri() with SSL?
- Favicon causes mixed content warning over SSL
- After updating site to use SSL all images in posts point to http://
- Adding https to wordpress website
- What’s the right move with SSL for user based site?
- I am locked out of my WordPress site after changing site URL from Http to Https
- Enabling SSL on wordpress results in 404
- SSL setup: wp-login css doesn’t load over httpS
- In WP versions >= 4.0, is FORCE_SSL_LOGIN forcing HTTPS for the entire admin session?
- Separating HTTP and HTTPS content with WordPress, Varnish, and an SSL terminator?
- SSL Certificate and WordPress
- Pointing SSL Enabled URL at Single WordPress Page
- Occasional HTTPS Mixed Content Warning
- Google maps causing mixed content in header
- Cloudflare and SSL breaks wordpress – Mixed Content & Unable to use Admin
- XML asset fails to load using https
- I changed my site from HTTPS back to HTTP and now it is broken- Cannot access Admin panel on HTTP URL
- un-loading https
- WordPress site shows “File not found.” if opened through https
- How to set up HTTPS WordPress from Install Step?
- Address a single page to SSL https secure protocol?
- Certain header elements not served over https
- wordpress http to https windows server
- Jetpack “Connect to WordPress” serving insecure content under HTTPS
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- Website access with http and https
- How to force non SSL on just one page?
- Need ideas for HTTPS multiple domain solution
- Redirect the whole blog to SSL but not the RSS feed (under Nginx)
- WordPress 4.0 Forces entire site into SSL
- How to control SSL in WordPress for automatically changing http to https?
- Site not reachable due to change from HTTP to HTTPS [closed]
- How do I find non-SSL problems on my SSL page?
- ERR_TOO_MANY_REDIRECTS on wordpress page [closed]
- Disable WordPress accessing WordPress.org to check for updates
- URLs not being output with https
- How to protect login via SSL but not the rest of the dashboard
- ERR_CONNECTION_REFUSED
- The REST API request failed due to an error. cURL error 60: SSL certificate problem: certificate has expired
- Do I install WordPress from my Cpanel on https or http, if my website has valid certificate?
- Website Migration (with https) to a new domain(http)
- ERR_SSL_PROTOCOL_ERROR
- WordPress – SSL not working – browser console error “Mixed Content” and “Failed to load resource”
- Problem forcing San SSL certificate on WordPress
- SSL Certificate
- Front-end pages messed up due to HTTPS
- How to switch static files back to using HTTP instead of HTTPS?
- WordPress Insecure Content
- I just updated my SSL certificate and now my site looses formatting when
- I would like to add ssl certificate to my already existing wordpress site
- WordPress and SSL
- SSL problems with WordPress
- SSL/HTTPS Redirect Loop
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- iHow to redirect all http traffic to https now that a SSL certificate is added?
- How to force static assets with HTTP sources to load over HTTPS?
- WordPress stuck at Step 1 of setup behind nginx reverse proxy
- Issue when site move from ssl domain to new domain without ssl
- How to view all ssl certificates in a bundle?
- SSL Certificate Location on UNIX/Linux
- Wildcard SSL certificate for second-level subdomain
- Does each server behind a load balancer need their own SSL certificate?
- Changing my URL in General Settings cause the site to crash