跳到正文

mTLS

作者:Arisa

Adds support for mTLS to Minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Minecraft TLS (mTLS)

Adds Mutual TLS (mTLS) support to Minecraft. Encrypts traffic and acts as a strict player allowlist using certificates – only players with a valid client certificate can connect.

Made so friends don’t need to install external tools like stunnel.


🛠️ Server Setup

Place your certificates in config/mtls_server/:

  • ca.crt (CA certificate)
  • server.crt (Server certificate)
  • server.key (Server private key, PKCS#8 format)

Using an Nginx SSL Reverse Proxy?

You still need this mod on the server to disable vanilla Minecraft encryption.

1. Edit config/minecrafttls-common.toml and set alwaysDisableVanillaEncryption to true.

2. Do not place certificates in config/mtls_server/ (this disables the mod’s native TLS so Nginx can handle it).


🖥️ Client Setup

Configure mTLS settings directly in the server edit screen:

mTLS Server Config Screen
mTLS Server Connection Details


📌 Versions

  • Supported: NeoForge 1.21.1, 26.2
  • Planned: Fabric & newer/older MC versions

常见问题

mTLS 支持哪些 Minecraft 版本?

mTLS 支持 Minecraft Java 版 1.21.1–26.2,共 12 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

mTLS 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分