-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/cups: Fix Unable to encrypt connection: #55517
Conversation
14bdda1
to
00570ba
Compare
@GrahamcOfBorg test printing |
Expanded the printing test to cover this. |
@@ -334,6 +334,10 @@ in | |||
[ ! -e "/var/lib/cups/$i" ] && ln -s "${rootdir}/etc/cups/$i" "/var/lib/cups/$i" | |||
done | |||
|
|||
# While cups will automatically create self-signed certificates if accessed via TLS, | |||
# this directory to store the certificates needs to be created manually. | |||
mkdir -m 0700 -p /var/lib/cups/ssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would make more sense for this to be up at line 314 where the other directories are created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I wrongly interpreted the lines above for moving /etc/cups
to /var/lib/cups
to interfere with /var/ib/cups/ssl
, but I was wrong. Moved up.
Unable to create server credentials by creating /var/lib/cups/ssl directory.
00570ba
to
33b3272
Compare
@GrahamcOfBorg test printing |
Unable to create server credentials
by creating /var/lib/cups/ssl directory.
Motivation for this change
Partial fix for #23993, makes this troubleshooting unnecessary: https://nixos.wiki/wiki/Printing#Upgrade_Required
Reproduce wtih:
lpstat -E -s
, which tries to list all printers over an encrypted connection.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)