Used --pinnedpubkey with curl built with a TLS backend without support for it. But it doesn't complain on bad keys.
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.
I'll paste and update this from my mailing list email as well:
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:
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
Committed a fix for this in commit 283babf. Please try it out and see if there's anything missing now.