|
|
Importing SSL Certificates in Linux
This article lists the commands used to import your existing SSL certificates into PaperCut when running on Linux. This will allow the certificates to be used for accessing the web interfaces via HTTPS.
The following information was contributed by Matt Peacock of Belper School, a power user of PaperCut NG.
1. If you have separate PEM encoded key and certificate files, you will first need to convert them to a PKCS12 bundle as follows:
openssl pkcs12 -export -inkey keyfile.key -in cert.crt -out /tmp/pccert.pfx
2. Import the PKCS12 bundle into PaperCut as follows:
~papercut/runtime/linux-i686/jre/bin/java -classpath ~papercut/server/lib/jetty-6.1.22.jar org.mortbay.jetty.security.PKCS12Import "/tmp/pccert.pfx" ~papercut/server/custom/my-ssl-keystore
ls ~papercut/server/lib or use tab completion to find the version shipped with your installation.
3. To set up PaperCut to use the new certificate:'''
~papercut/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>
- Note that there can be a short delay between restarting the PaperCut service and HTTP/HTTPS connections becoming available
.
/tmp/pccert.pfx
- (It is no longer necessary, and it contains your certificate's private key, which should be kept secure.)
"~papercut/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').
See also:
- Importing an existing SSL key section of the user manual
- Importing an SSL certificate from IIS
Categories: Tips & Tricks, Security
Keywords: JSSE keystore, Jetty, Secure Socket Extension, certificate warning, browser security
Comments
Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.