The problem I'm trying to solve:
hub should pin the either the certificate or certificate authority used by GitHub, and tell git processes it runs to do the same.
How I imagine hub could expose this functionality:
This should work out of the box for github.com. For GitHub Enterprise, configuring a certificate authority and/or certificate will be required.