SSL: Using OpenSSL

In this guide, we'll go through the process of importing an existing OpenSSL based certificate into EveryonePrint consisting of a certificate file .cer (Security Certificate) and a private key file .key (KEY File).

Resolution:

The process consists of 3 steps:

  1. Import chain certificates
  2. Create the new Keystore
  3. Test the SSL connectivity

1. Import Chain Certificates:

kb111222_001
Double-click the .cer file and confirm the chain of certificates all the way from root to end certificate, which must say, "This certificate is OK".
kb111222_002

In order to import the chain of certificates into an SSL keystore for use in EveryonePrint, each certificate in the chain must be saved to a file.

Select the root certificate, click View CertificateDetails, and Copy to File.
kb111222_003

Choose the format Base-64 encoded X.509 (.CER).
kb111222_004

And save this top certificate as cert-1.cer.
kb111222_005

Repeat this for the other intermediate certificates in the chain.
kb111222_006

Save as cert-2cert-3 and so on.
kb111222_007

Repeat this for other intermediate certificates. Since the end certificate is already a .cer file, there is no need to copy this to the file.

In this example, we'll end up with 4 separate .cer files and the .key file.
kb111222_008

2. Create the New Keystore

Open Keystore Explorer and Create a new Keystore file of the JKS type.
kb111222_009

Choose to first Import Key Pair and choose the type OpenSSL.
kb111222_010

The key, in this case, is un-encrypted, so no key decryption password is needed, however, most often, private keys are encrypted and password protected.

Choose the original .key and .cer file of the end certificate.
kb111222_011

Enter alias that matches the "common name" or fully qualified domain of the certificate.
kb111222_012

Enter a key password of your choice (this is used later when adding keystore to EveryonePrint).
kb111222_013

Right-click the certificate entry and choose Append to Certificate Chain.
kb111222_014

And now we'll append all the previous intermediate certificates, starting from the "bottom" all the way up to the root, ie.
Start with cert-3.cer and append each one up to cert-1.cer.
kb111222_015

kb111222_016

When all intermediate and root certificate files have been appended, right-click the certificate and choose View Details -> Certificate Chain Details.
kb111222_017

Confirm that the chain is established, identical to the original certificate, when opened directly in Windows.
kb111222_018

When ready, save the keystore, and enter a keystore password. In this example, the password "password" was chosen for both the private key and keystore password.
kb111222_019

Save the keystore file to the EveryonePrint etc folder, by default in:  C:\Program Files (x86)\EveryonePrint\etc\.
kb111222_020

In the \etc folder, open the file called jetty-ssl.xml and change the keystore entries to use our new keystore file, and enter passwords in 3 places.

While we're here, we're also changing from the default 9443 port to standard https port 443, so end users can enter a URL in their browser without specifying the port.
kb111222_021

3. Test the SSL Connectivity

Now you should be able to confirm the working certificate in the browser.
kb111222_022-1

If the Web interface is inaccessible, any Web server-related errors are logged to the file:

C:\Program Files (x86)\EveryonePrint\logs\eopwebservice.log