02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

vii<br />

9.5 Configuring SSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

9.5.1 OpenSSL backend usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Install OpenSSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Recompile and install NUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Create a certificate and key for upsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Figure out the hash for the key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Install the client-side certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

Create the combined file for upsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

Note on certification authorities (CAs) and signed keys . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

Install the server-side certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

Clean up the temporary files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

Restart upsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

Point upsmon at the certificates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

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

Recommended: force upsmon to use SSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

9.5.2 NSS backend usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

Install NSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

Recompile and install NUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

Create certificate and key for the host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br />

Create a self-signed CA certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br />

Install the server-side certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br />

upsd (required): certificate database and self certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

upsd (optional): client authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

upsmon (required): upsd authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

upsmon (optional): certificate database and self certificate . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

9.5.3 Restart upsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

9.5.4 Restart upsmon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

9.5.5 Recommended: sniff the connection to see it for yourself . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

9.5.6 Potential problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

9.5.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

9.6 chrooting and other forms of paranoia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

9.6.1 Generalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

9.6.2 symlinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

9.6.3 upsmon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

9.6.4 Config files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

A Glossary 47

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

Saved successfully!

Ooh no, something went wrong!