OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
958 stars 174 forks source link

Facing difficulty in updating CUPS to SSL connection by passing "https" in values file #900

Closed davindersingh1469 closed 4 months ago

davindersingh1469 commented 4 months ago

I am unable to update the CUPS service to SSL connection in my application. After multiple efforts where I have updated the new CUPS URL in the values file using "https" protocol instead of "http" and also updated/inserted new SSL certificate in the cacerts file, I was still not able to hit the new/secured CUPS URL. After further troubleshooting, I figured out that the "getPrinters" method in the existing CUPS client JAR (maintained by CUPS) is always passing "http" as a prefix. It does not matter if you are passing "https" in your values file, the method is always taking "http" as prefix to the URL and hence causing the issue. For my satisfaction, I have also updated to the latest CUPS client JAR version (0.7.9) but no luck even after that.

I will really appreciate if someone can put some light on this topic or if anyone has previously faced the similar issue.

michaelrsweet commented 4 months ago

CUPS doesn't include any Java code, so I'm not sure what you are referring to?