02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong> 42 / 84<br />

Clean up the temporary files<br />

rm -f upsd.crt upsd.key<br />

Restart upsd<br />

It should come back up without any complaints. If it says something about keys or certificates, then you probably missed a step.<br />

If you run upsd as a separate user id (like nutsrv), make sure that user can read the upsd.pem file.<br />

Point upsmon at the certificates<br />

Edit your upsmon.conf, and tell it where the CERTPATH is:<br />

CERTPATH <br />

Example:<br />

CERTPATH /usr/local/ups/etc/certs<br />

Recommended: make upsmon verify all connections with certificates<br />

Put this in upsmon.conf:<br />

CERTVERIFY 1<br />

Without this, there is no guarantee that the upsd is the right host. Enabling this greatly reduces the risk of man in the middle<br />

attacks.<br />

This effectively forces the use of SSL, so don’t use this unless all of your upsd hosts are ready for SSL and have their certificates<br />

in order.<br />

Recommended: force upsmon to use SSL<br />

Again in upsmon.conf:<br />

FORCESSL 1<br />

If you don’t use CERTVERIFY 1, then this will at least make sure that nobody can sniff your sessions without a large effort.<br />

Setting this will make upsmon drop connections if the remote upsd doesn’t support SSL, so don’t use it unless all of them have<br />

it running.<br />

9.5.2 NSS backend usage<br />

This section describes how to enable NUT SSL support using Mozilla NSS.<br />

Install NSS<br />

Install Mozilla NSS as usual, either from source or binary packages. If using binary packages, be sure to include the developer<br />

libraries, and nss-tools (for certutil).<br />

Recompile and install NUT<br />

Recompile NUT from source, starting with configure --with-nss.<br />

Then install everything as usual.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!