Can you share your agent configuration please ?
At first sight I would say :
Is your OCS server in https ? If yes, change your server address in your agent conf file.
Is your SSL option at 1 (in agent conf) ? If yes, put it at "0"
+ delete the port from your address server, useless if it is the default one (80)