cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Download SSL Server Certificate?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 6 Oct 2015 21:22:14 +0200

On Tue, Oct 06, 2015 at 08:53:19PM +0200, Boris Lenz wrote:
> Can I pull (i.e., save) the certificate a server sends during the SSL
> handshake process? The server is set to use client authentication, and I
> don't have any certificates the server will accept.

You can easily do this with the openssl command-line tool, like:

  openssl s_client -connect www.example.com:443 -showcerts

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-10-06