为什么需要这个?
你可能并不需要它。但是,如果你是一个模组开发者,使用自己的网站并设有更新检查功能,或者其他方式可以访问你的网站,你可能会遇到一个问题 - 在 Mojang 启动器自带的 Java 版本上,你无法访问 Let's Encrypt 的资源。
这个模组有什么作用?
它在模组加载时安装 Let's Encrypt 证书。
作为模组开发者,我该如何使用它?
只需在 CurseForge 和你的模组中依赖它即可。我在构造函数中运行证书的安装——因此甚至不需要依赖该模组!
但如果我不想增加更多依赖呢?
代码是开源的,并在顶部提供了链接。请随意复制粘贴部分内容,遵守 MIT 许可证 :)
如果有人在支持 Let's Encrypt 证书的 Java 版本上运行它——这不会造成重复工作吗?
不会——只有当检测到不支持 Let's Encrypt 证书的 Java 版本时,它才会运行!
你和 Let's Encrypt 有关联吗?
没有。完全没有关联。不过他们确实做了很棒的工作——如果你运营一个网站,也许可以在 了解一下他们。
Why do I need this?
You probably don't. However, if you're a modder who uses their own site and has an update check, or other kind of access to your web site, you may have come across a problem - you can't access Let's Encrypt resources on the version of Java that Mojang ship with their launcher.
What does this do?
It installs the Let's Encrypt certificate at runtime when the mod is loaded.
As a modder, how do I use this?
Just depend on it on CurseForge, and probably your mod. I run the installation of the certificate in the constructor - so no need to even depend on the mod!
But what if I don't want more dependencies?
The code is open source, and is linked at the top. Feel free to wholesale copy and paste bits, abiding by the MIT license :)
What if someone runs it with a Java version which does support Let's Encrypt certificates - aren't you just duplicating work?
Nope - it will only run if it detects a version of Java which doesn't support Let's Encrypt certificates!
Are you affiliated with Let's Encrypt?
Nope. Not at all. They do cool stuff though - if you run a website, you may want to check them out at
评论 0
登录后参与评分
还没有评论,来抢沙发吧