Skip to content

Commit

Permalink
Switch to more general root certificate
Browse files Browse the repository at this point in the history
(fixes support with SBE)
  • Loading branch information
Wyvest committed Nov 28, 2023
1 parent a1c0660 commit f9e1369
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod_name=SkyClient Updater
# Sets the id of your mod that mod loaders use to recognize it.
mod_id=skyblockclientupdater
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
mod_version=1.3.3
mod_version=1.3.5
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=SkyClient-Updater

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ import javax.net.ssl.SSLContext
progress.step("Fixing Modrinth SSL")
try {
var sslStore = SSLStore()
println("Attempting to load Modrinth certificate.")
sslStore = sslStore.load("/modrinth.com.der")
println("Attempting to load Let's Encrypt certificate.")
sslStore = sslStore.load("/isrg-root-x2.der")
val context: SSLContext = sslStore.finish()
SSLContext.setDefault(context)
HttpsURLConnection.setDefaultSSLSocketFactory(context.socketFactory)
} catch (e: Exception) {
e.printStackTrace()
println("Failed to add Modrinth certificate to keystore.")
println("Failed to add Let's Encrypt certificate to keystore.")
}
progress.step("Downloading helper utility")
UpdateChecker.INSTANCE.downloadHelperTask()
Expand Down
Binary file added src/main/resources/isrg-root-x2.der
Binary file not shown.
Binary file removed src/main/resources/modrinth.com.der
Binary file not shown.

0 comments on commit f9e1369

Please sign in to comment.