Temporary fix for expired Java certificate (#9266)

This commit is contained in:
Alex Vasile 2022-08-03 12:35:30 -04:00 committed by GitHub
parent 7233061ae3
commit 95a0cb5ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -67,6 +67,7 @@ import javax.swing.event.PopupMenuListener;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.SocketException;
@ -191,6 +192,8 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
* Creates new form MageFrame
*/
public MageFrame() throws MageException {
System.setProperty("javax.net.ssl.trustStore", System.getProperty("user.dir") + "/src/main/resources/cacerts".replace('/', File.separatorChar));
System.setProperty("javax.net.ssl.trustStorePassword","changeit");
setWindowTitle();
EDTExceptionHandler.registerExceptionHandler();

Binary file not shown.