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.)
Further, I don't even want to deal with certificates; just RSA/ECDSA public keys.
Specifically, they are both PHP applications and I'm using curl to facilitate the communication.
Has anyone accomplished this before?
By default, curl is setup to not trust any CAs. So there's that. And without going into great detail or opinion based responses, here's a well organized "Pinning Cheat Sheet" that may be of some help to you: https://www.owasp.org/index.php/Pinning_Cheat_Sheet (no bounty necessary <3)