Use an existing IIS certificate
If your organization's intranet is served by Internet Information Server (Windows), Apache (Linux), or another web server, you might be able to use the IIS certificate for PaperCut NG.
You can use an existing IIS certificate if either:
- your intranet server and PaperCut NG Application server run on the same server, that is, they have the same server name and address
- you have a wild-card certificate that allows arbitrary subdomains under the domain name (for example, myschool.edu) for which it was issued
Step 1: Export the existing certificate with key
To export your trusted certificate:
- Open the Windows management console.
- Select your IIS server.
- Navigate to the Windows Start menu.
- Right-click the Command Prompt.
- Select Run as administrator.
- Run the following command:
Verify that the Console Root screen is displayed:
- On the Console Root screen, press the keyboard shortcut Ctrl+M.
Verify that the Add or Remove Snap-ins screen is displayed:
On the Add or Remove Snap-ins screen’s Available snap-ins list, select Certificates; click Add:
From the Certificates snap-in screen, select Computer account; click Next>:
Verify that on the Add or Remove Snap-ins screen’s Selected snap-ins list, Console Root > Certificates is displayed:
- Click OK.
On the Console Root screen, navigate to: Console Root > Certificates > Personal > Certificates:
Right click the certificate and navigate to: All Tasks > Export…:
- Follow the Certificate Export Wizard’s prompts:
Select Yes, export the private key; click Next:
Select Personal Information Exchange, Include all certificates in the certification path if possible and Enable certificate privacy; click Next:
Select Password; then enter the export password; then click Next.Important: When importing the certificate use this same password as the source keystore password.
Select the directory in which the certificate will be exported to:
Enter the File name that the certificate will be exported as, in the directory you selected; click Save:
Verify that the File name displays the path of directory you selected and the file name of the certificate that you specified; click Next:
- Close the Find Certificates screen.
- Close the Console Root screen.
Step 2: Import the certificate into the PaperCut NG keystore
To import your trusted certificate into the PaperCut NG keystore:
- Navigate to the directory where your exported certificate is saved and copy the certificate.
Navigate to the following path on your PaperCut NG Application ServerAn Application Server is the primary server program responsible for providing the PaperCut user interface, storing data, and providing services to users. PaperCut uses the Application Server to manage user and account information, manage printers, calculate print costs, provide a web browser interface to administrators and end users, and much more. and paste the certificate in this path:
- Right-click the Command Prompt.
- Select Run as administrator.
Run the following command:
On the directory, delete any existing files with the following name:
On the Command Prompt, run the following command:
keytool -importkeystore -srckeystore "[app-path]\server\custom\MySslExportCert.pfx" -srcstoretype pkcs12 -destkeystore "[app-path]\server\custom\my-ssl-keystore"
Enter the following responses to the SSL keyIn typical public key infrastructure (PKI) arrangements, a digital signature from a certificate authority (CA) attests that a particular public key certificate is valid (i.e., contains correct information). An SSL key can be either a public key (can be disseminated publicly) or a private key (known only to the owner).:
Enter destination keystore password: Enter keystore password.
Re-enter new password: Re-enter the same keystore password.
Enter source keystore password: Enter the same password as entered while exporting the certificate on the Certificate Export Password screen.
keytool -importkeystore -srckeystore "c:\Program Files\PaperCut MF\server\custom\MySslExportCert.pfx" -srcstoretype pkcs12 -destkeystore "c:\Program Files\PaperCut MF\server\custom\my-ssl-keystore"
Step 3: Configure the PaperCut NG keystore
Changes are not applied until the PaperCut NG Application Server is restarted.
To configure the PaperCut Application Server to use the new key/certificate:
Copy your signed keystore onto the server running the PaperCut NG Application Server. The suggested location is [app-path]/server/custom/my-ssl-keystore
Open the file [app-path]/server/server.properties with a text editor (e.g. Notepad).
Locate the section titled SSLSecure Sockets Layer (SSL) is the standard security technology for establishing an encrypted link between a web server and a browser. This link ensures that all data passed between the web server and browsers remain private and integral. The protocol uses a third party, a Certificate Authority (CA), to identify one end or both end of the transactions. To be able to create an SSL connection a web server requires an SSL certificate. When you choose to activate SSL on your web server you will be prompted to complete a number of questions about the identity of your website and your company. Your web server then creates two cryptographic keys - a Private Key and a Public Key. Key/Certificate.
Remove the # (hash) comment marker from all lines starting with "server.ssl".
Define the following:
server.properties value Description server.ssl.keystore=custom/my-ssl-keystore The location of your keystore. This must match the value specified by -k in create-ssl-keystore. If you did not specify this value in create-ssl-keystore, leave it as default. server.ssl.keystore-password=default The keystore password. This must match the value specified by -keystorepass in create-ssl-keystore. If you did not specify this value in create-ssl-keystore, leave it as default. server.ssl.key-password=default The keystore key password. This must match the value specified by -keystorekeypass in create-ssl-keystore. If you did not specify this value in create-ssl-keystore, leave it as default.
NOTE: On Mac OS, for server.ssl.keystore, specify the FULL path to your keystore, e.g. /Applications/PaperCut NG/server/custom/my-ssl-keystore
- Save the file.
Restart the PaperCut NG Application Server and verify all is working. If the server fails to start, error messages are recorded in logs located in the server's logs directory.
Now that you have a working SSL certificateSSL certificates are small data files that digitally bind a cryptographic key to an organization’s details, such as a company's domain name, your company name, your address, your city, your state and your country. When installed on a web server, it activates the padlock and the HTTPS protocol (over port 443) and allows secure connections from a web server to a browser. When a browser connects to a secure site it retrieves the site's SSL certificate and checks that it has not expired, it has been issued by a Certification Authority the browser trusts, and that it is being used by the website for which it has been issued. If it fails on any one of these checks the browser will display a warning to the end user letting them know that the site is not secured by SSL. SSL certificates can be either self-signed or CA signed. for your PaperCut NG server, it's time to set a reminder in your calendar (or similar) to ensure that your SSL certificate is renewed before it expires! Go do that now!