截图
介绍
View Jar Signing
This mod enables the ability to view JAR signing info in NeoForge built-in mod list screen.
It is highly recommended that you have some understanding of JAR signing related details,
and its caveats in a modding environment.
If you have doubts about a particular signed mod, please verify it
using jarsigner beforehand.
This mod only exposes the result produced by NeoForge and does not perform any JAR verification.
How to read its output
_Only signed mod will have signing information displayed._
Status: self-explanatory [[_see note_]](#note)
Leaf signer fingerprint: SHA256 fingerprint for the first signer’s leaf certificate.
Signer(s) Format: <CodeSignerN>.<CertificateN> [Type]: <Signer Info> (CertAlg)
CodeSigner– Signer that present in the manifest.Certificate– Certificate in signer’s certificate path.Type:CA– Certificate AuthoritySelf– Self-signed.Signer Info: distinguished name information.)CertAlg– algorithm name that used to create the certificate.
* will prefixed for each leaf signer’s certificate, except for JAR that has only one signer certificate.
By default, only leaf certificate will be shown. Configuration is provided to enable listing of all certificate chain.
Note
This mod mixin and uses some internal NeoForge and SecureJarHandler APIs to obtain, display the signers’ certificate
details. Therefore, stability of this mod is not guaranteed.
- It only verifies
.classfiles, other files is ignored. - Mod can be modified in runtime and still be valid, since verification take place in actual JAR file.
- Minecraft will always show
Invalidstatus since its installation occurred during install-time.
Background
The display is mostly based on
NeoForge’s ModListScreen.
It is first introduced in 1.16 but disabled in mod list screen due to it not perform actual checks,
shortly after implemented. https://github.com/MinecraftForge/MinecraftForge/issues/7500
In 1.17 onwards, verification of .class is performed.
https://github.com/neoforged/NeoForge/blob/1.17.x/fmlloader/src/main/java/net/minecraftforge/fml/loading/moddiscovery/AbstractJarFileLocator.java#L57
In 1.21, it remains unchanged, although it has moved to a different package.
https://github.com/neoforged/FancyModLoader/blob/1.21.1/loader/src/main/java/net/neoforged/fml/loading/moddiscovery/ModFile.java#L152-L153
常见问题
View Jar Signing 支持哪些 Minecraft 版本?
View Jar Signing 支持 Minecraft Java 版 1.21.1–1.21.7,共 7 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
View Jar Signing 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分