You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NSS on Debian Stretch with libnss3: Can not initialize SSL context #572
Debian Linux ecosystemDebian, Ubuntu, Proxmox... (DEB packaging)LinuxSome issues are specific to Linux as a platformSSL/NSSIssues and PRs about SSL, TLS and other crypto-related mattersbugimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)
I am unable to get 2.7.4 to work with NSS support as provided by
libnss3 2:3.26.2 on Debian stretch. Currently NSS supports two
database formats identified by prefixes "sql:" for the new database
and "dbm:" for the legacy database, but there is no way of specifying
them in 2.7.4.
I created the NSS database in directory /etc/nut with command
certutil -N -d dbm:NSS_db --empty-password
I copied over public key and certificate from a working NUT+OpenSSL
installation and checked them as follows: List certificates:
root@gold /etc/nut # certutil -L -d dbm:NSS_db
Certificate Nickname Trust Attributes
SSL,S/MIME,JAR/XPI
gold Cu,u,u
Check certificates:
root@gold /etc/nut → certutil -K -d dbm:NSS_db
certutil: Checking token "NSS Certificate DB" in slot
"NSS User Private Key and Certificate Services"
< 0> rsa df7b376946c8cfe59d74095dfc4b882d081b981b gold
With #3331 recently resolved, now (on the master branch and in future NUT v2.8.6+ releases), the NSS and OpenSSL builds should be functionally equivalent.
Presuming this fixes the issue; feel free to re-open if the problem can be reproduced with current code. Bump debug verbosity and post logs then, please, so it is easier to figure out what went wrong :)
Debian Linux ecosystemDebian, Ubuntu, Proxmox... (DEB packaging)LinuxSome issues are specific to Linux as a platformSSL/NSSIssues and PRs about SSL, TLS and other crypto-related mattersbugimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)
Activity
stratege1401 commentedon Aug 12, 2018
Hello,
i think we have a related bug.
#563
Luo2Jie2 commentedon Aug 12, 2018
Gooberpatrol66 commentedon Dec 12, 2021
I believe I am having this same problem.
trallnag commentedon Jan 31, 2024
Same here. Hmm, I wonder if the OpenSSL integration works better. Too bad on Ubuntu / Debian nut is compiled without OpenSSL support.
jimklimov commentedon Mar 12, 2026
Hopefully fixed with recent merges to the master branch (for more context see #3344, #3330, #1711). At the very least, the current code base should be more debug-able (if you turn up the daemon verbosity, see https://github.com/networkupstools/nut/wiki/Changing-NUT-daemon-debug-verbosity).
Testing welcome, with eventual v2.8.5 release or custom builds of the master branch before that, see https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests
Until #3331 gets addressed, NSS support actually handles the more functional of the two crypto backends we have now.
jimklimov commentedon May 11, 2026
With #3331 recently resolved, now (on the master branch and in future NUT v2.8.6+ releases), the NSS and OpenSSL builds should be functionally equivalent.
Presuming this fixes the issue; feel free to re-open if the problem can be reproduced with current code. Bump debug verbosity and post logs then, please, so it is easier to figure out what went wrong :)