<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 4, 2015 at 6:33 PM, Emilien Kia <span dir="ltr"><<a href="mailto:kiae.dev@gmail.com" target="_blank">kiae.dev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br><div class="gmail_extra">Fixed in PR #199 <a href="https://github.com/networkupstools/nut/pull/199" target="_blank">https://github.com/networkupstools/nut/pull/199</a><br>Tests are welcome.<br></div><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>Hero of the day! Thank you very much for your investigation and nice fix! I compiled NUT from the official Ubuntu 14.04 package (2.7.1-1ubuntu1) by adding a patch of your modifications. Indeed the patch is trivial in itself but the result is a nasty bug being fixed :)<br></div></div><br></div><div class="gmail_extra">So, once the new patch deployed and just uncommenting SSL related settings in upsd.conf and upsmon.conf this is what I get :<br><br></div><div class="gmail_extra">In the NUT server logs after restarting nut-server, waiting few seconds and starting nut-client:<br>upsmon[4011]: Startup successful<br>upsd[3872]: SSL handshake done successfully with client 127.0.0.1<br>upsd[3872]: User <a href="mailto:upsmaster@127.0.0.1">upsmaster@127.0.0.1</a> logged into UPS [APC] (SSL)<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">upsmon.conf uses CERTPATH /path/to/certs_dir, CERTVERIFY 0 and FORCESSL 1<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I also tried with CERTIDENT and CERTHOST and no trouble whatsoever.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Now trying to connect from another host :<br></div><div class="gmail_extra">Shell# upsc APC@nutserver<br>Init SSL without certificate database<br>Connecting in SSL to 'nutserver' (no certificate name specified)<br>Do not intend to authenticate server nutserver<br>SSL handshake done successfully with server nutserver<br>Connected to nutserver in SSL<br>Certificate verification is disabled<br></div><div class="gmail_extra">[... attributes list with values ...]<br clear="all"></div><div class="gmail_extra"><br></div><div class="gmail_extra">I have one word for you: Congratulations!<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thank you very much again for your time and efforts.<br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Unix _IS_ user friendly, it's just selective about who its friends are.</div>
</div></div>