Name
easy:SetOpt_Proxy_PinnedPublicKey -- get pinned public key for https proxy
Synopsis
easy:SetOpt_Proxy_PinnedPublicKey(pinnedpubkey)
Function
Pass a string as parameter. The string can be the file name of your pinned public key. The file format expected is "PEM" or "DER". The string can also be any number of base64 encoded sha256 hashes preceded by "sha256//" and separated by ";"

When negotiating a TLS or SSL connection, the https proxy sends a certificate indicating its identity. A public key is extracted from this certificate and if it does not exactly match the public key provided to this option, curl will abort the connection before sending or receiving any data.

On mismatch, #CURLE_SSL_PINNEDPUBKEYNOTMATCH is returned.

Inputs
pinnedpubkey
input value

Show TOC