-
Notifications
You must be signed in to change notification settings - Fork 101
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.
-
Open up the file
-
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.
Once extracted, the certificate file qz-free.csr
is ready to be imported into Java.
###Importing the Certificate
-
Go to the Start Menu and type java in the search bar.
-
Find the Configure Java option and click on it.
-
Go to the Security tab and click Manage Certificates.
-
Change the Certificate Type to Signer CA, and click on Import.
-
Navigate to the file location where we extracted the
qz-free certs
file to. -
When you open the file you see a file called
qz-free.csr
. -
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
-
Navigate to
\qz-print\dist
and open thesample.html
file. -
Click Run when the Java screen appears.
-
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. -
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](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.