问题原文
原帖链接 · prgrm · CC BY-SA 3.0
I have a site
mysite.com
and a printer
mysite.com:631/printers/myprinter
Well, https:// www.mysite.com works perfectly and is validated, but https:// www.mysite.com:631/printers/myprinter won't. It says that the connection is not secured and I cannot install the printer.
This is what I have in conf.d in my CUPS server:
DefaultEncryption Required
ServerCertificate /etc/letsencrypt/live/mysite/cert.pem
ServerKey /etc/letsencrypt/live/mysite/privkey.pem
SSLPort 443
Any help making the printer and the site https?
已采纳解答
原帖链接 · SchiWaGoA · CC BY-SA 4.0
Copy your SSL (example LetsEncrypt ) to cups directory, as shown below:
cat /etc/letsencrypt/live/yourdomain.com/fullchain.pem >> /etc/cups/ssl/server.crt
cat /etc/letsencrypt/live/yourdomain.com/privkey.pem >> /etc/cups/ssl/server.key
restart cups-server:
systemctl restart cups # on CentOS
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
