qz-tray.jks not found with self signed certifcate compile

139 views
Skip to first unread message

abbas...@gmail.com

unread,
Jun 18, 2017, 8:02:12 AM6/18/17
to qz-print
I am trying to use qz tray with a self signed certificate, on a windows & mac machine following the instructions in the original docs and here: https://medium.com/@buddhiv/how-to-directly-print-from-your-browser-using-qz-tray-6c86ccd7b3f9

Using ant + nsis I was able to generate the binary, with the cert overridden by my self signed cert. But when I install using this binary, the qz-tray.jks file is not generated. This results in the error "jks not found, or keystore may be corrupt" on launching the newly installed qz tray application.

Both, my cert and private key files, are in the .pem format.

Abbas Dawood

unread,
Jun 18, 2017, 8:06:10 AM6/18/17
to qz-print
Side note: I tried generating the installer on a mac too (using the 2.0 branch), using pkgbuild with ant. It fails with this error:

     [exec] ============================================

     [exec]                  Finished                   

     [exec] ============================================

     [exec] 

     [exec] pkgbuild: error: Cannot write package to "/Users/abbass/Development/tray/out/qz-tray-community-Exception in thread main java.lang.ExceptionInInitializerError

     [exec] at qz.ws.PrintSocketServer.main(Unknown Source)

     [exec] Caused by: Numeric identifier MUST NOT contain leading zeroes

     [exec] at com.github.zafarkhaja.semver.VersionParser.checkForLeadingZeroes(VersionParser.java:479)

     [exec] at com.github.zafarkhaja.semver.VersionParser.numericIdentifier(VersionParser.java:407)

     [exec] at com.github.zafarkhaja.semver.VersionParser.preReleaseIdentifier(VersionParser.java:339)

     [exec] at com.github.zafarkhaja.semver.VersionParser.parsePreRelease(VersionParser.java:311)

     [exec] at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:261)

     [exec] at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:195)

     [exec] at com.github.zafarkhaja.semver.Version.valueOf(Version.java:265)

     [exec] at qz.common.Constants.<clinit>(Unknown Source)

     [exec] ... 1 more-unsigned.pkg". (The operation couldn’t be completed. Bad file descriptor)


BUILD FAILED

/Users/abbass/Development/tray/build.xml:348: exec returned: 1

Abbas Dawood

unread,
Jun 18, 2017, 11:41:58 PM6/18/17
to qz-print
Got the error,

  1. Was not using JDK 1.8
  2. I did not modify the self-sign.properties & project.properties with the correct values.


On Sunday, 18 June 2017 17:32:12 UTC+5:30, Abbas Dawood wrote:

Tres Finocchiaro

unread,
Jun 19, 2017, 9:49:45 AM6/19/17
to Abbas Dawood, qz-print
Abbas,

The file "qz-tray.jks" is used solely for HTTPS support, so this issue is not directly related to any PEM files you provide.

The error suggests something wrong is happening with the version supplied in Constants.java.  Did you change the version number?  It must be a valid SemVer.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages