Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

1.8 Import Certificate

klabarge edited this page Sep 7, 2016 · 4 revisions

Compatibility

  • ⛔ 2.x | ⛔ 1.9 | ✅ 1.8 (💀) | ...

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 certs.zip by extracting it to a desired location. In this example, we are extracting the files to the same directory.

    image

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.

    image

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

    image

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

    image

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

    image

  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.

    image

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

    image

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.

    image

  2. Click Run when the Java screen appears.

    image

  3. Click Allow when the Security Warning screen apppears.

    image

    ####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

![image](https://cloud.githubusercontent.com/assets/12505463/7927402/4f9a8788-08ad-11e5-9828-5fc31d112014.png)

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.