Iam using self signed certificate.its not working

36 views
Skip to first unread message

Chekuri Deepika

unread,
May 14, 2019, 9:04:34 AM5/14/19
to qz-print

Compile source code

followed all your steps

It returns exe file

i placed it in Qz tray folder






trusted.png


Chekuri Deepika

unread,
May 14, 2019, 9:17:01 AM5/14/19
to qz-print
clone sorce code:
cd tray
git pull
ant
ant nsis

ant nsis -Dauthcert.use="E:/cert/fabkare.crt"

id didn't understand this step

Create tray/.../private/private.properties

signing.alias=#keystore alias
signing.tsaurl=#timestamp url
signing.keypass=#key password
signing.storepass=#store password
signing.keystore=#path to jks file
#authcert.use=#path to signing auth cert

but i create qz-tray.properties
 wss.alias=qz-tray
wss.keystore=C:\\Program Files\\QZ Tray\\auth\\fabkare.jks
wss.keypass=*****
wss.storepass=*****
wss.host=0.0.0.0

 
trusted.png

Tres Finocchiaro

unread,
May 14, 2019, 10:14:52 AM5/14/19
to chdeepi...@gmail.com, qz-print
We do not assist with bypassing the licensing component on this mailing list.  If there is a technical question with the product, let us know

At a glance it looks like you never setup the signing portion.  The software requires a certificate AND a signature for each privileged call.  The signing examples (setSignaturePromise(...)) are part of sample.html and in the bundled assets/signing directory per tutorial:



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/9047b3fc-0857-4aca-a728-8a8dcd9a7b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chekuri Deepika

unread,
May 14, 2019, 10:34:22 PM5/14/19
to qz-print
What's the use of compilation.
I ovverride the certificate with my certificate
Why should I use again that self signed promise.

Tres Finocchiaro

unread,
May 14, 2019, 10:43:46 PM5/14/19
to Chekuri Deepika, qz-print
Why should I use again that self signed promise.

Quoting the linked article and reiterating what was already said:

The function setSignaturePromise() is used for proving a JavaScript callback method for signing each privileged method to prevent anonymous printing. This is a security measure to ensure the identity of websites can be verified by the software.
These methods are invoked on any privileged function, which includes finding attached devices, printing, or sending/reading data from a USB or serial device.

What's the use of compilation. 

Compilation step is only needed for those altering the code or the package.  In your case, you're probably following an article on medium that instructs you to use the compiling step to get self-signing to be part of the package.  You can skip this if you alter the qz-tray.properties file directly.  Regardless, we do not assist with bypassing the licensing component on this mailing list.



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

Chekuri Deepika

unread,
May 15, 2019, 1:05:03 AM5/15/19
to qz-print
Thank you.
I studied that Signing Messages
But I dont have pem file
I have only .crt and jks files
 but in javacode ur using pem
 is it possible to use jks file
   

Tres Finocchiaro

unread,
May 15, 2019, 1:15:37 AM5/15/19
to Chekuri Deepika, qz-print
PEM and JKS are just different private key formats.  You can try to convert them but it would probably require keytool (to .p12) openssl (to .pem).

Assuming they're self-signed, just create new ones.  The signing examples use PEM because that's what our licensing portal generates and PEM private keys are very common.  The two formats that you'll see most are PKCS#1 (-----BEGIN RSA PRIVATE KEY-----) and PKCS#8 (-----BEGIN PRIVATE KEY-----)

Most of our signing examples have been converted to assume PKCS#8.  .NET examples use a PFX/P12 key instead.



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages