title: TLS Public Key Pinning with PHP + Curl?
body: <p>I would like to set up communication between two applications that are secured via TLS 1.2 wherein the public keys of the end-points are pinned. (No certificate authorities involved.)</p>
  
  <p>Further, I don't even want to deal with certificates; just RSA/ECDSA public keys.</p>
  
  <p>Specifically, they are both PHP applications and I'm using curl to facilitate the communication.</p>
  
  <p>Has anyone accomplished this before?</p>