Jump to content

[1.12.1] Problem with HTTPS Connections in FMLPostInitEvent


Recommended Posts

Posted (edited)

Hey,

my problem is with the SSL Engine of Forge: In every Init event (Pre, Init, Post) the HTTPS connection to my server fails with this exception:

  Reveal hidden contents

The code:

  Reveal hidden contents

As I already mentioned before, I tried the SSL Connection methods in every other initialization event too.

The weird thing with that error is, that if I for example implement this method into a command of mine, it works flawlessly and without errors.

 

When I switch to HTTP, everything works alright again.

 

Details:

Forge Version: 1.12.1 - 14.22.1.2485

Java Version: Java 1.8.0_25 (included one)

Forge Mods installed: My mod, Damage Indicator, ItemPhysics Lite, Optifine

LiteLoader Mods installed: Macro Mod, WorldEditCUI

JVM Arguments: -Xmx5G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M

Edited by Fuzzlemann
Posted

Same error:

 

  Reveal hidden contents

 

Posted (edited)

Testing with JDK 1.8.0_144 -> Working fine.

 

Others having the same problem with the included Java, any other solution outside of staying at HTTP?

Edited by Fuzzlemann
Posted

or maybe this can help

  Quote
InputStream in = null;
	try {
		in = new URL(versionFileLink).openStream();
		org.apache.commons.io.IOUtils.toString(in, StandardCharsets.UTF_8);
	} catch (MalformedURLException e) {
		LoggerHelp.warn("MalFormedUrlExpection : " + e);
		return;
	} catch (IOException e) {
		LoggerHelp.warn("Maybe wrong input : " + e);
		return;
	}

 

Expand  

 

Always looking for new challenges, and happy to help the people where ever I can

Posted
  On 2/16/2018 at 4:08 PM, diesieben07 said:

Sounds like the trusted certificates includes with the outdated Java version shipped by the launcher reject your SSL certificate. Probably related to you using Let's Encrypt (which is fine). I don't think you have much choice except using modern Java or switching to either HTTP or a different certificate authority.

 

Edit: Yes, Let's Encrypt Authorities were added in Update 101: https://stackoverflow.com/a/34111150/3638966.

Expand  

Oh, thanks for your clarification and your help.

 

  On 2/16/2018 at 4:18 PM, sir_titi said:

or maybe this can help

 

Expand  

Not sure how that should help in any way.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.