title: PHP Client to verify https certificates
body: <p>I need to create a php that will act as a client and use some web services under https.
  My Problem is that I also want to verify the server certificate.I need to know that I have the right server and that there is no one the middle that acts as the server.
  Can someone help me please?</p>
  
  <p>Thanks!</p>