Importing an SSL certificate from IIS
If you are using an SSL Certificate in IIS, you can configure PaperCut NG to use it as well. This will allow you to access PaperCut via HTTPS without seeing error messages about the certificate you are using.
The following article was contributed by Chris from Colchester Royal Grammar School, a power user of PaperCut NG.
To export your certificate from IIS:
mmc to start the Microsoft Management Console
C:\PCCert.pfx (Again, this is just temporary, you MUST delete this file later on)
To import the certificate:
"C:\Program Files\PaperCut NG\runtime\jre\bin\java.exe"
-classpath "C:\Program Files\PaperCut NG\server\lib\jetty-6.1.19.jar"
org.mortbay.jetty.security.PKCS12Import
"C:\PCCert.pfx"
"C:\Program Files\PaperCut NG\server\custom\my-ssl-keystore"
(Note: The Jetty version number (6.1.19) changes from time to time. If you receive a "NoClassDefFoundError" message look for a jetty-*.jar file in the [app-path]/server/lib/ directory and update the command as appropriate)
To set up PaperCut to use the new certificate:
C:\Program Files\PaperCut NG\server\server.properties
server.ssl.keystore=custom/my-ssl-keystore
server.ssl.keystore-password=<your keystore password>
server.ssl.key-password=<your keystore password again>
C:\PCCert.pfx
Under Options->General->Client Software you can tell the client software to access the server via SSL/HTTPS by default, to increase security.
Depending on how your certificate has been issued, when you attempt to access the PaperCut Web Interface through the link on the user client tool, you may receive errors stating that 'The name on the security certificate is invalid or does not match the name of the site'. To get rid of these errors you need to update the 'server-name' value in "C:\Program Files\PaperCut NG\client\client.properties" to reflect the name of the server that is specified in your web server certificate. This may simply be a case of supplying the fully qualified domain name instead of the 'simple' server name (i.e. 'server.domain.com' instead of just 'server').
Categories: Tips & Tricks, Security
Keywords: JSSE keystore, Jetty, Secure Socket Extension, certificate warning, browser security
