Well if that were true, what would be the difference between verifyhost and verifypeer?
Doesn't "you are connecting to them" mean you are their peer.
Surely, they are the host and you are the peer.
I can back it up: When my production server installed with an ssl cert connects with a (valid) ssl site there is no error due to verifypeer. If on the otherhand my local test server that is not running an ssl cert tries to connect to a (valid) ssl site, it throws an error if verifypeer is true.
I've also checked that verifyhost checks the server you are connecting to (by using alternate domains pointing to the same ip).
So it would appear I am correct about that, but that does not explain the purpose of verifypeer.
Anyone know the purpose of CURLOPT_SSL_VERIFYHOST?