On May 31, 2019, at 1:29 AM, Manuel Wolfshant wrote:> > On 5/31/19 6:54 AM, Gene Heskett wrote: >> Greetings all; >> >> gene at coyote:~$ upsc myups >> Init SSL without certificate database >> battery.charge: 100 >> battery.charge.low: 30 >> [yadda yadda] >> >> Is there a certificate package I should install? >> >> Cheers, Gene Heskett > > the nut client ( upsc ) is trying to use the NSS-based SSL backend of your OS (in order to avoid sending passwords in clear text to the UPS) but the backend is not initialized yet. look for the docs appropriate for your distro in order to find out how to create the database used by NSSCorrect, the Debian and Ubuntu packages use the NSS-based SSL backend, but the message is spurious (upsc does not send passwords) and can be ignored. To be honest, I thought we had fixed this a while ago (NUT 2.7.1), but I guess it popped back up again: https://github.com/networkupstools/nut/issues/30
On Friday 31 May 2019 10:08:02 am Charles Lepple wrote:> On May 31, 2019, at 1:29 AM, Manuel Wolfshant wrote: > > On 5/31/19 6:54 AM, Gene Heskett wrote: > >> Greetings all; > >> > >> gene at coyote:~$ upsc myups > >> Init SSL without certificate database > >> battery.charge: 100 > >> battery.charge.low: 30 > >> [yadda yadda] > >> > >> Is there a certificate package I should install? > >> > >> Cheers, Gene Heskett > > > > the nut client ( upsc ) is trying to use the NSS-based SSL backend > > of your OS (in order to avoid sending passwords in clear text to the > > UPS) but the backend is not initialized yet. look for the docs > > appropriate for your distro in order to find out how to create the > > database used by NSS > > Correct, the Debian and Ubuntu packages use the NSS-based SSL backend, > but the message is spurious (upsc does not send passwords) and can be > ignored. > > To be honest, I thought we had fixed this a while ago (NUT 2.7.1), but > I guess it popped back up again: > https://github.com/networkupstools/nut/issues/30nut 2.7.2. Built from the tarball. Some option I should have configured it for? Thanks all. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
On May 31, 2019, at 11:19 AM, Gene Heskett wrote:> > On Friday 31 May 2019 10:08:02 am Charles Lepple wrote: >> >> To be honest, I thought we had fixed this a while ago (NUT 2.7.1), but >> I guess it popped back up again: >> https://github.com/networkupstools/nut/issues/30 > > nut 2.7.2. Built from the tarball. Some option I should have configured > it for?Gene, I misread issue #30 - that issue was because upsc was sending "Init SSL without certificate database" to stdout (which would break scripts), not stderr (which just annoys people). So the stdout/stderr thing was fixed in NUT 2.7.1. If you're building NUT from tarballs, and you are just running things locally, you could configure it without SSL or NSS support. (Should be something like "--without-ssl") On the other hand, didn't you say in a previous email (mid-May) that you were using packages? If so, wolfy's suggestion is similar to the instructions here: https://networkupstools.org/docs/user-manual.chunked/ar01s09.html#_nss_backend_usage . -- - Charles Lepple https://ghz.cc/charles/