Skip to content

Configuration

Config file: earlyplugins/CustomCert.json

Created automatically on first startup with default values.

json
{
  "privateKeyPath": "certificates/server.key",
  "publicKeyPath": "certificates/server.crt",
  "experimental": {
    "bypassClientCertificateBinding": false
  }
}

Options

OptionDefaultDescription
privateKeyPathcertificates/server.keyPath to private key (PEM format)
publicKeyPathcertificates/server.crtPath to certificate (PEM format)
experimental.bypassClientCertificateBindingfalseSkip client certificate binding validation

Certificate format

PEM-encoded X.509 certificates.

certificates/
├── server.key    # Private key (PKCS#8 or PKCS#1)
└── server.crt    # X.509 certificate

To generate manually:

bash
openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -days 365 -nodes

Or let the plugin auto-generate on first startup.

Troubleshooting

ProblemSolution
Plugin not loadedVerify --allow-early-plugins flag is set
Certificates not loadingCheck file permissions and PEM format
Config not loadingValidate JSON syntax in CustomCert.json

Released under the MIT License.