Hi,
In https, you should have
/server=http[s]://server.domain.tld[:port]/ocsinventory
server called by FQDN, not by IP ! Modify your OCS Agent configuration
Note that your certificate must be generated using FQDN. if use IP, you must create new one with FQDN this time.
Regards.