title: Display received cert with curl?
body: <p>With a slightly older version of curl, I had a handy batch file:</p>
  
  <pre><code>curl --verbose -k https://%1 2&gt;&amp;1 |grep -E "Connected to|subject|expire"
  </code></pre>
  
  <p>This would show me the IP connected to, with the subject and expiration date of the actual certificate negotiated, even if that was not the correct certificate for that domain name -- which is sometimes a problem for our hosting (we host literally thousands of domains on our multitenant application, about half with their own certs). </p>
  
  <p>In specific, I would see something like this in the stderr output before grep filtered it:</p>
  
  <pre><code>* Server certificate:
  *  subject: CN=academy-fran.chi.v6.pressero.com
  *  start date: Feb 22 04:55:00 2017 GMT
  *  expire date: May 23 04:55:00 2017 GMT
  *  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
  *  SSL certificate verify ok.
  </code></pre>
  
  <p>Today I had to reinstall the OS on my machine, and reinstalled curl. Now at version 7.52.1 (x86_64-w64-mingw32); previous one seems to have been 7.49.1 (i686-pc-cygwin).  Curl no longer displays ANY certificate information, regardless of whether -k is used or not, if the TLS connection succeeds or not.</p>
  
  <p>Is there an option that will give it back to me?</p>