Wiki - 1.8 Import Certificate


This tutorial will demonstrate how to import the certificate that is supplied with the free version of qz-print into Java, and how to properly load the applet within the browser. These steps will allow the sample.html page to properly display.

#How to Import Certificates into Java This section applies to the free version only. Premium versions don't need to import a certificate, as it's already trusted. ###Extracting the Zip File

The certificates must be extracted from their zip file before they can be imported into Java.

  1. Open up the file

  2. Unzip the file qz-free by extracting it to a desired location. In this example, we are extracting the files to the same directory.


Once extracted, the certificate file qz-free.csr is ready to be imported into Java.

###Importing the Certificate

  1. Go to the Start Menu image and type java in the search bar.


  2. Find the Configure Java option and click on it.


  3. Go to the Security tab and click Manage Certificates.


  4. Change the Certificate Type to Signer CA, and click on Import.


  5. Navigate to the file location where we extracted the qz-free certs file to.

  6. When you open the file you see a file called qz-free.csr.


  7. Select Open and you should see the following screen:


If you see the certificate Tres Finocchario you have successfully imported the certificate!

#Loading the Applet

  1. Navigate to \qz-print\dist and open the sample.html file.


  2. Click Run when the Java screen appears.


  3. Click Allow when the Security Warning screen apppears.


    ####Codebase Parameter If this dialog persists after after checking the "remember" checkbox, it's due to new security requirements in Java rquiring a codebase parameter which requires recompiling.

  4. After hitting allow, the webpage should turn from pale yellow to gray. If your page is displaying properly, it will look like the image below.

Note: If at anytime the Java screen prompts do not appear, check your task bar for a Java icon. image


That's it. At this point, the applet is properly running in your browser and you are ready to move on to Getting Started tutorial, which demonstrates the code behind qz-print.

Edit this page