--pinnedpubkey for unsupported TLS backends #781

bagder opened this Issue Apr 27, 2016 · 2 comments


None yet

3 participants

bagder commented Apr 27, 2016 edited

I did this

Used --pinnedpubkey with curl built with a TLS backend without support for it. But it doesn't complain on bad keys.

I expected the following

It needs to warn or error out when the option is used without support in libcurl so that the problem is not silently ignored.

Ray's initial patch for this

Also see this additional gskit patch

I'm assigning you Jay since you were on track on this before. Let me know if you're not fine with that, then I can take over instead.

cc: @moparisthebest

@jay jay was assigned by bagder Apr 27, 2016
@bagder bagder added the SSL/TLS label Apr 27, 2016

I'll paste and update this from my mailing list email as well:

these backends
implementations are unsupported:

axtls.c - looks unlikely to ever be supported after glance at docs
darwinssl.c - stalled
schannel.c - Ray said someone was working on this? who/where?

and these have partial support:

cyassl.c only support #ifdef KEEP_PEER_CERT
gskit.c only support pem/der, needs curlssl_sha256sum defined for hash

of course that leaves these with full support:


@bagder bagder assigned bagder and unassigned jay May 1, 2016
@bagder bagder added a commit that referenced this issue May 1, 2016
@bagder bagder tls: make setting pinnedkey option fail if not supported
to make it obvious to users trying to use the feature with TLS backends
not supporting it.

Discussed in #781
Reported-by: Travis Burtrum
bagder commented May 1, 2016

Committed a fix for this in commit 283babf. Please try it out and see if there's anything missing now.

@bagder bagder closed this May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment