upscli_add_host_cert (3) - Linux Man Pages
upscli_add_host_cert: Register a security rule for an host.
upscli_add_host_cert - Register a security rule for an host.
void upscli_add_host_cert(const char* hostname, const char* certname, int certverify, int forcessl);
The upscli_add_host_cert() function register a security rule associated to the hostname. All connections to this host use this rule.
The rule is composed of the certificate name certname 'expected for the host, 'certverify if the certificate must be validated for the host and forcessl if a secured connection must be used to connect to the host.