UPSCLI_ADD_HOST_CERT(3)
β¨ UPSCLI_ADD_HOST_CERT β¨
okay bestie, so this is upscli_add_host_cert from the NUT manual, section 3 π it's the one where you tell your lib "hey, here's the security tea for this specific host" and she remembers it forever. no cap.
πΈ NAME πΈ
upscli_add_host_cert β Register a security rule for an host. π
π¦ SYNOPSIS π¦
#include <upsclient.h>
void upscli_add_host_cert(
const char* hostname,
const char* certname,
int certverify,
int forcessl);
π DESCRIPTION π
So like, the upscli_add_host_cert() function registers a security rule that's associated to the hostname. Every single connection to this host uses this rule. periodt. π₯
The rule is composed of three lil ingredients, and you're gonna want to know all of them:
- the certificate name
certnameexpected for the host π certverify, which says whether the certificate must be validated for the host βforcessl, which says whether a secured connection must be used to connect to the host π
β οΈ Note β real talk, bestie: this call currently only functions iflibupsclienthas been compiled with NSS support. If instead it was compiled with OpenSSL support, this method contains an empty definition and will take no action when called. π Starting with NUT v2.8.5, you can useupscli_ssl_caps(3)from consumer code to query the library about its build circumstances (whether it supports SSL, and which backend(s)). iykyk π
π RETURN VALUE π
upscli_add_host_cert() returns no value. that's it. that's the whole vibe. she does her thing and gives you nothing back, and honestly? iconic. π
β SEE ALSO β
upscli_init(3)upscli_connect(3)upscli_ssl(3)upscli_ssl_caps(3)upscli_strerror(3)upscli_upserror(3)
okay that's the whole page, bestie, you ate that π«Ά and for the cute sign-off: this was Network UPS Tools 2.8.5, dated 10/07/2026 β main character energy from the NUT manual, fr fr πβ¨π¦
π¦ where this page comes from
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms