Installing an SSL Certificate the Easy Way
“Help! I’m a Systems Administrator and I need to install a custom SSL Certificate onto our PaperCut server. What’s the easiest way to do this?”
Setting up PaperCut to use SSL/TLS can be fairly complicated if you take the command line approach and can sometimes lead to a few cups of coffee being needed before it works. To take the pain away, there is an easier method you can use thanks to a free tool called KeyStore Explorer. The process can be broken into three main parts:
- Creating a KeyStore.
- Generating a Certificate Signing Request (CSR) and Importing the CA Response
- Cutting Over the PaperCut Configuration
If you’d like to check out the command line method, which offers more control at the expense of ease, head over to our trusted certificate documentation in the Help Center
If you already have a cert generated by your CA, you can skip to Importing an Existing Certificate Keypair
Download and install the latest release of KeyStore Explorer from: http://www.keystore-explorer.org/downloads.html
Depending on the version of JRE you have installed, KeyStore Explorer might ask you to update Java’s cryptography Libraries. Follow the prompts and it will guide you through this.
The video below demonstrates how to set up KeyStore Explorer
1. Click Create a new KeyStore
2. Select JKS, then click OK
3. click the Generate Key Pair icon to generate a Key Pair
4. Select RSA, then set the Key Size for your new certificate to either 2048 or 4096 and click OK
5. In the Validity Period field, set how long the certificate will be valid for
6. Click the address book icon
7. In the Common Name field, enter the Fully Qualified Domain Name (link users will access) for your PaperCut server. Fill out the other fields according to your organization’s details, then click OK
8. If your server has more than one name, or if you intend to use a Wildcard Certificate you should fill out the Subject Alternative Name (SAN) extension for your certificate to avoid errors. If not, skip step 8.
- 8a. Select the Add Extensions button.8b. Click the + Button to Add an Extension Type.8c. Scroll down through the extension types and select the Subject Alternative Name, then click OK8d. Select the + Button in the Subject Alternative Name Extension Window.8e. In the Alternative Name Window, select DNS Name and enter the FQDN for your PaperCut server machine. Select OKRepeat this adding process for any other domain names that may be associated with your PaperCut machine (for example, if you want to associate webprint.yourdomain.edu and papercut.yourdomain.edu with the same machine).8f. Click OK Until you are prompted with an Alias Window
9. In the Enter Alias field, set an alias so you know what the key is for, then click OK
10. Set the password for your key, then click OK. Remember to make a note of this, as you will need to re-enter this later as the “server.ssl.key-password”.
The video below demonstrates how to create a new certificate:
1. Right-click on your Key Pair, then select Generate CSR
2. In the CSR File field, set the output path for the CSR, then click OK
3. Apply for a certificate with your Certificate Authority (CA) by providing them the CSR.
4. The CA will provide your new certificate, plus one or more “CA certs” (the certificate of the CA, and maybe their upstream CA, etc.). If they have provided a “bundle” (all the certs in the one file). Otherwise, choose the file that represents your certificate. Right-click the key, then select Import CA Reply then select From File and browse to the chosen certificate file (probably
If there are several separate certificate files, you might need to edit the certificate chain to ensure all the certificates are in there. Get in touch if you need a hand.
The video below demonstrates how to generate a CSR:
1. Click Create a new Key Store
2. Select JKS, then click OK
3. Click the Import Key Pair icon
4. Select the type of certificate you are using, then click OK
This is normally PKCS12 (.pfx, .p12), but it depends on where your certificate came from.
5. Click Details to verify the certificate. If you get an error, it could be the password or the wrong certificate type
6. In the Enter Alias field, enter an alias for the newly imported Certificate, then click OK
1. Save your KeyStore
2. Set the password for your KeyStore , then click OK. Remember to make a note of this, as you will need to re-enter this later as the “server.ssl.keystore-password”
3. Copy the saved KeyStore to
[install-path]/server/server.properties and change the values below to match your filename and passwords and remember to remove the # signs to enable these keys
Note: If the keystore filename includes a file extension, please include it here. (ex: papercut-keystore.ks)
5. Restart the PaperCut Application Server service and check https://your.fully.qualified.domain.name:9192/admin
If you don’t see any errors, congratulations! You can now reward yourself with a coffee. If you see an error message, reach out to us via (http://support.papercut.com) then grab a coffee. Most of the time, we will have replied before you have made it back to your desk.
Keywords: SSL, Security, KeyStore Explorer, Certificate