moparisthebest 93e450793c SSL: implement public key pinning
Option --pinnedpubkey takes a path to a public key in DER format and
only connect if it matches (currently only implemented with OpenSSL).

Provides CURLOPT_PINNEDPUBLICKEY for curl_easy_setopt().

Extract a public RSA key from a website like so:
openssl s_client -connect google.com:443 2>&1 < /dev/null | \
sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -noout -pubkey \
| openssl rsa -pubin -outform DER > google.com.der
2014-10-07 14:44:19 +02:00
..
2014-06-18 11:45:22 +02:00
2014-06-19 00:03:17 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 00:03:17 +02:00
2014-06-18 13:18:58 +02:00
2014-06-18 13:18:58 +02:00
2014-06-18 13:18:58 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 13:53:13 +02:00
2014-06-18 14:40:26 +02:00
2014-07-30 23:37:24 +02:00
2014-06-18 14:40:26 +02:00
2014-06-20 01:10:34 +02:00
2014-06-18 13:18:58 +02:00
2014-07-30 23:37:24 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 13:53:13 +02:00
2014-06-18 13:18:58 +02:00
2014-06-19 13:53:13 +02:00
2014-06-18 13:18:58 +02:00
2014-06-19 13:53:13 +02:00
2014-06-18 13:18:58 +02:00
2014-06-18 14:40:26 +02:00
2014-06-19 00:03:17 +02:00
2014-06-18 13:18:58 +02:00
2014-06-20 01:10:34 +02:00
2014-07-30 23:37:24 +02:00
2014-06-20 23:31:06 +02:00
2014-06-20 23:31:06 +02:00
2014-06-28 12:40:06 +01:00
2014-06-19 00:03:17 +02:00
2014-07-30 23:37:24 +02:00
2014-06-19 13:53:13 +02:00
2014-06-19 13:53:13 +02:00
2014-06-18 13:18:58 +02:00
2014-06-18 00:54:30 +02:00
2014-06-18 11:45:22 +02:00
2014-07-30 23:37:24 +02:00
2014-06-19 13:53:13 +02:00