SSL Cert fix
This commit is contained in:
@@ -6,7 +6,7 @@ import net.minecraftforge.fml.common.SidedProxy;
|
||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.montoyo.mcef.utilities.Log;
|
||||
import net.montoyo.mcef.LetsEncryptAdder;
|
||||
import net.montoyo.mcef.SSLCertificateAdder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -73,11 +73,12 @@ public class MCEF {
|
||||
// Save the configuration
|
||||
cfg.save();
|
||||
|
||||
// Add Let's Encrypt certificate
|
||||
// Add certificates if needed
|
||||
// This is a workaround for Java 7u111 and 8u101, which have issues with Let's Encrypt certificates or google trust services
|
||||
try {
|
||||
LetsEncryptAdder.validateAndInstall();
|
||||
SSLCertificateAdder.validateAndInstall();
|
||||
} catch (Exception e) {
|
||||
Log.error("Failed to add Let's Encrypt certificate: " + e.getMessage());
|
||||
Log.error("Failed to add a certificate: " + e.getMessage());
|
||||
}
|
||||
|
||||
PROXY.onPreInit();
|
||||
|
Reference in New Issue
Block a user