I’m about to connect to a secure EPP server and send an XML request and then receive a response in XML format again.
I need to do this in PHP. So I need to connect to the EPP server on a specific port over TCP, using SSL Certificate (as this is the information I have so far, still waiting to whitelist my IP and send me the certificate).
So my question might seem a little dumb, but do I need to use fsockopen or cURL to connect, how do I define that I need to use SSL and how do I define and use this SSL certificate along with that?
Well, you just init curl, set options and exec curl request:
You can find a complete list of curl options in the manual:
curl_setopt manual