Skip to content

Commit d28426d

Browse files
authored
Fix certificate detection logic on MacOS
Closes #1060
1 parent 7f7de20 commit d28426d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qz/installer/certificate/MacCertificateInstaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public boolean remove(List<String> idList) {
5454
public List<String> find() {
5555
ArrayList<String> hashList = new ArrayList<>();
5656
try {
57-
Process p = Runtime.getRuntime().exec(new String[] {"security", "find-certificate", "-e", Constants.ABOUT_EMAIL, "-Z", certStore});
57+
Process p = Runtime.getRuntime().exec(new String[] {"security", "find-certificate", "-a", "-e", Constants.ABOUT_EMAIL, "-Z", certStore});
5858
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
5959
String line;
6060
while ((line = in.readLine()) != null) {

0 commit comments

Comments
 (0)