Skip to content

Commit

Permalink
Fix HTTPS for Chrome/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 6, 2020
1 parent da3293c commit 1c5f9fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/qz/ws/PrintSocketServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import qz.common.Constants;
import qz.common.TrayManager;
import qz.installer.Installer;
import qz.installer.certificate.ExpiryTask;
import qz.installer.certificate.CertificateManager;
import qz.installer.certificate.*;
import qz.utils.ArgParser;
import qz.utils.FileUtilities;
import qz.utils.SystemUtilities;

import javax.swing.*;
import java.io.*;
Expand Down Expand Up @@ -85,6 +85,11 @@ public static void main(String[] args) {
}
Installer.getInstance().addUserSettings();

// Linux needs the cert installed in user-space on every launch for Chrome SSL to work
if(!SystemUtilities.isWindows() && !SystemUtilities.isMac()) {
NativeCertificateInstaller.getInstance().install(certificateManager.getKeyPair(KeyPairWrapper.Type.CA).getCert());
}

try {
log.info("Starting {} {}", Constants.ABOUT_TITLE, Constants.VERSION);
SwingUtilities.invokeAndWait(() -> trayManager = new TrayManager(headless));
Expand Down

0 comments on commit 1c5f9fb

Please sign in to comment.