Get certificate info from remote host with PHP