Repository navigation
Releases
mkcert Web UI 5.0.1
Fixed
- SSO stayed broken until restart if the OIDC provider was unreachable at
startup (#59). Discovery ran once at boot; when it failed,/auth/oidc
answered500 Unknown authentication strategy "oidc"until the process was
restarted (typical with Docker Compose starting mkcert-web before the
identity provider). Discovery is now retried when someone signs in with
SSO, at most once every 10 seconds, and until the provider answers the
browser is returned to the login page with a "provider cannot be reached"
message. The discovery request also has a 10 second timeout, so a provider
that accepts connections but never answers no longer stalls startup.
Added
docs/DOCKERHUB.md, the Docker Hub overview page.docker-build-push.sh
now publishes it, with the short description, after each push, and
--overview-onlyupdates the page without building.
Images
- Docker Hub:
jeffcaldwellca/mkcertweb:5.0.1(also5.0,5,latest) - GHCR:
ghcr.io/jeffcaldwellca/mkcertweb:v5.0.1
mkcert Web UI 5.0.0
Docker: docker pull jeffcaldwellca/mkcertweb:5.0.0 · ghcr.io/jeffcaldwellca/mkcertweb:v5.0.0 — upgrading from 4.4.x? Read Upgrading from 4.4.x below first.
Highlights
- Split-pane dashboard. Every page has a top bar (page tabs, mkcert / CA /
openssl status, user, theme) with a list pane on the left and a detail pane
on the right. The certificates page groups certificates as needs attention,
healthy, read-only and archived, has a quick-generate command bar and a
filter, and shows overview, files and notes tabs for the selected
certificate. The selection is kept in the URL. - Root CA and notifications pages. The root CA (details, download, install
guide, generate) and the notification channels (email, ntfy, webhook,
monitoring, with their test actions and the expiring list) moved off the
certificates page onto their own pages. - Settings page with a section list, a setting search, the config key on
every field, unsaved-change tracking (editedsections,discard, a
leave-page warning) and the running configuration. - SCEP page rebuilt: service URLs with copy buttons, enterprise CA status,
templates, and challenges / issued / manual enroll / mdm setup tabs. A new
challenge password is shown once. - Light and dark themes on every page, including login, and a layout that
works down to phone width.
Upgrading from 4.4.x
- Docker: the image's
HEALTHCHECKand the compose health check now
probe/api/healthinstead of/; change any custom health check the same
way. SetTRUST_PROXYto your reverse proxy's address as the container sees
it (see docs/DOCKER.md). -
docker run: add-v mkcert_config:/app/configso settings saved in
the UI (config/settings.json) survive recreating the container, as
docker-compose.ymlandnpm run docker:runnow do. - systemd: the unit moved to
deploy/mkcert-web-ui.serviceand keeps
the CA in/var/lib/mkcert-web-ui/ca. Before starting it, copy the existing
rootCA.pemandrootCA-key.pemthere (or mkcert creates a new CA), then
create the directories it writes to:
cd /opt/mkcert-web-ui && sudo install -d -o www-data -g www-data certificates config data ssl.
See deploy/README.md. -
ENABLE_OIDC=truewithoutENABLE_AUTH=true: the settings API and
mkcert -uninstall(POST /api/uninstall-ca, anduninstall-cain
POST /api/execute) now return 403. SetENABLE_AUTH=true; without it
there was never a login, OIDC or otherwise. -
FORCE_HTTPS=truenow redirects pages, assets and API calls: 301 for
GET and HEAD, 308 for other methods. Only/api/healthand/scepare
exempt. Scripts that call the API overhttp://must switch tohttps://. - API clients:
- The removed endpoints and response fields listed under Breaking are gone;
use the replacements given there. - Archive and restore return 409
TWIN_EXISTSinstead of overwriting a
same-name copy; restore takes?swap=trueto exchange the two. ?archivedand?swapaccept onlytrueorfalse(anything else is a 400).DELETE /api/certificates/:folder/:certnameremoves one copy only (see
Breaking for which one).GET /apikeys are now"METHOD /path".- Every JSON 500 body is a fixed
errormessage plus aref(and a short
reasonon a few routes). Don't parse the error text; look up theref
in the server log. - Status codes: archive when the active files are gone → 404 (was 200);
restore when the archived files are gone → 404 (was 200); an unexpected
upload failure → 500 (was 400); a malformed JSON body → 400 (was 500); an
oversized body → 413 (was 500).
- The removed endpoints and response fields listed under Breaking are gone;
- UI: uploaded and SCEP-issued certificates are view-only. The root-ca
page's install button really runsmkcert -installon the server (it needs
root, so it fails in Docker and under the systemd unit; install the CA on
clients instead). An archived certificate with an active copy of the same
name shows their shared note read-only; edit it on the active copy (see
Known issues).
Breaking
- Removed endpoints (they now return 404):
GET /api/files,
GET /api/file/:filename/content,GET /download/:filename,
GET /api/certificate/:filename,DELETE /api/certificate/:filenameand
GET /api/commands. Use/api/download/{cert,key,bundle}/:folder/…and
/api/certificates/:folder/:certname. GET /apiindex format.endpoints.<group>keys are now
"METHOD /path"with a description as the value (was"/path": "METHOD - …",
which also lost one of two routes sharing a path). The index lists every API
route.- Same-name archived and active certificates are never overwritten:
DELETE /api/certificates/:folder/:certnamedeletes exactly one copy:
?archived=truethe archived one,?archived=falsethe active one, no
parameter the active one if present, else the archived one. It used to
delete both. The response addsscope.POST …/restorereturns 409TWIN_EXISTSwhen an active copy exists,
instead of overwriting it;?swap=trueexchanges the two copies.POST …/archivereturns 409TWIN_EXISTSwhen an archived copy exists,
instead of overwriting it.
?archivedand?swapaccept onlytrueorfalse; anything else is a 400.- A certificate name that decodes to a path (e.g. a double-encoded
archive%252F<name>) is rejected with 400. - Uploaded and SCEP-issued certificates are view-only in the UI (no download,
PFX, archive or notes buttons); the server's per-certificate routes never
accepted their folders. - Removed response fields that exposed server paths and that the UI
never read:commandandcertificateDirfromPOST /api/execute
(generate); the absolutepathof each file inGET /api/certificates
(relativePathstays);workingDirectoryfromGET /api/system;
publicCACertPathfromPOST /api/generate-ca; and from the public
GET /api/status:caRoot,ca.root,server.pid,server.memory,
server.versionandenvironment.workingDir(features.oidcis now a
boolean). - systemd unit moved to
deploy/mkcert-web-ui.serviceand now keeps the
root CA in/var/lib/mkcert-web-ui/ca. When upgrading, copyrootCA.pem
androotCA-key.pemfrom the service user's old mkcert directory there
first, or mkcert creates a new CA (seedeploy/README.md). FORCE_HTTPS=trueredirects everything over plain HTTP (pages, assets,
API calls), with 308 for methods other than GET and HEAD, except
/api/healthand/scep. It used to reach only unknown paths, and it
trustedX-Forwarded-Protofrom any client; now only fromTRUST_PROXY
(see Fixed).- The settings API and uninstall-ca return 403 unless
ENABLE_AUTH=true,
even withENABLE_OIDC=true(see Security). - Health check path: the Docker and compose health checks probe
/api/health, not/. - Archive returns 404 when the active files are gone (it returned 200), and
restore returns 404 when the archived files are gone (it returned 200 and
moved nothing). - Error bodies and status codes: every JSON 500 is a fixed message plus a
ref(no error text, and no stack withNODE_ENV=development); unexpected
upload failures are 500 (were 400); malformed JSON is 400 and an oversized
body 413 (both were 500); a broken multipart upload is 400Malformed upload.
See Security and the upgrade checklist above.
Added
TRUST_PROXYenvironment variable: which proxies may set
X-Forwarded-For/X-Forwarded-Proto(true,false, a hop count, or
addresses, CIDRs andloopback/linklocal/uniquelocal). The default is
the previous hard-codedloopback,linklocal,uniquelocal, so existing
proxy-container setups keep working; that default trusts every private-LAN
client, so set it to your proxy's address as the app sees it (in Docker,
usually the network gateway or the proxy container's IP; see
docs/DOCKER.md).
Changed
- Accessibility: focus returns to a sensible place after every re-render;
status dots and channel states carry text, not only colour; toasts are
announced through live regions (errors stay until dismissed); sub-tabs work
with the arrow keys. - Content-Security-Policy:
script-srcandstyle-srcare'self'only, with
nounsafe-inlineand no CDN origin. No page has inline scripts, styles or
event handlers, and guard tests keep it that way. - Font Awesome is gone; icons are text glyphs. No page loads anything from
another origin. - The root-ca page's install button calls
POST /api/install-ca, which always
runsmkcert -install. The old path reported success without installing
when the CA files already existed. - Least-privilege systemd unit: the code tree is read-only to the service,
writes are limited tocertificates/,config/,data/andssl/, and the
CA lives in the unit's state directory. - Uploads are staged in a private directory under the OS temp dir instead of
the working directory. data/(certificate notes) is git-ignored.- The unused
asn1jsdependency is removed. - Pages link the favicons and web manifest;
/favicon.icoredirects to
/assets/favicon.ico. - CI runs
npm ciandnpm teston Node.js 22 (theenginesminimum) for
pull requests and pushes tomain; the Docker scan and publish jobs wait
for it. package.json: theenvscript is gone (server.jsloads.envitself),
docker:runmounts themkcert_configvolume like docker-compose, the
compose:*scripts usedocker compose, and thelicense(GPL-3.0-only)
andrepositoryfields are set.- ...
mkcert Web UI 4.4.3
Fixed
- CA generation failed when running as a custom UID (#54). With e.g.
user: "2000:2000", the UID has no passwd entry, Docker setsHOME=/, and
mkcert tried to create/.local/share/mkcert. The image now sets
CAROOT=/home/nodejs/.local/share/mkcert, so the CA path no longer depends
onHOME.docs/DOCKER.mddocuments running as a custom UID.
Security
- Dependency updates for four advisories.
npm auditis clean again:body-parser1.20.8 → 1.20.9 — DoS via trailing bytes after a
compressed request body (GHSA-27r3-jxmh-p828; also used by Express).multer2.4.0 → 2.5.0 — DoS via a pending asyncfileFilterafter
request teardown (GHSA-q7qp-rjg7-q26m).node-forge1.4.0 → 1.4.2 — RSA PKCS#1 v1.5 signature verification
accepted extra nested DigestAlgorithm elements (GHSA-86w9-cpqp-85rv).nodemailer10.1.1 → 10.2.1 — address-parser bugs that could turn
display text into extra recipients (GHSA-8c8m-p3m8-cjg8,
GHSA-m943-m63m-w62w, GHSA-85x2-q946-cp5h).
Images
- Docker Hub:
jeffcaldwellca/mkcertweb:4.4.3(also4.4,4,latest) - GHCR:
ghcr.io/jeffcaldwellca/mkcertweb:v4.4.3
mkcert Web UI 4.4.2
Fixed
- "Generate Root CA" success message. The UI shows "CA Certificate copied
to public download area" when the response hascaCopiedToPublic, but the
API never sent it, and the detailed success alert was passed through the
HTML-escapingshowAlert, so its formatting showed as literal<strong>/
<br>tags.POST /api/generate-canow returnscaCopiedToPublic(whether
the CA certificate is incertificates/afterwards), and the alert renders
as HTML with the CA path escaped.
Images
- Docker Hub:
jeffcaldwellca/mkcertweb:4.4.2(also4.4,4,latest) - GHCR:
ghcr.io/jeffcaldwellca/mkcertweb:v4.4.2
mkcert Web UI 4.4.1
Fixed
- "Generate Root CA" reported failure in Docker.
POST /api/generate-ca
ranmkcert -install, which creates the CA and then adds it to the system
trust store. The second step needs root, which the container'snodejs
user doesn't have, so the request returned 500 even though the CA had been
created (and the CA certificate was never copied tocertificates/for
download). The trust-store step is now best-effort: the endpoint succeeds
when the CA files exist, copies the CA for download, and returns
trustStoreInstalled: falsewith a message explaining it. - Wrong version in
/api/healthand/apiunder Docker (4.4.0
regression). The version came fromnpm_package_version, which isn't set
now that the image starts withnode server.js, so it showed1.0.0. It's
now read frompackage.json.
Images
- Docker Hub:
jeffcaldwellca/mkcertweb:4.4.1(also4.4,4,latest) - GHCR:
ghcr.io/jeffcaldwellca/mkcertweb:v4.4.1
mkcert Web UI 4.4.0
Security
- Docker image hardening (#46). A Trivy scan of the 4.3.4 image reported
~370 findings, mostly from the image rather than the app:- mkcert is now built from the v1.4.4 source with Go 1.27 and current
golang.org/x/{crypto,net,text}instead of using the 2022 release
binary (Go 1.18). This accounted for all critical findings. - Base image moved from
node:20-alpine(end-of-life 2026-04-30) to
node:24-alpine, withapk upgradefor Alpine security fixes. - npm, npx, corepack and yarn are removed from the runtime image; the
container now starts withnode server.js. - CI scans every build with Trivy (fails on fixable critical findings) and
rebuilds weekly so base-image patches reach:latest.
- mkcert is now built from the v1.4.4 source with Go 1.27 and current
- Dependency updates: nodemailer 10.1.1, multer 2.4.0, proxy-addr 2.0.8
(IP spoofing via IPv4-mapped IPv6 withtrust proxy), qs 6.16.1,
brace-expansion 2.1.7. - Code fixes: ReDoS in filename validation;
POST /sceprate-limits
before parsing the request body; SCEP certificate paths are validated
against traversal; page and OIDC routes are rate-limited.
Changed
- Node.js 22 or newer is required to run outside Docker (nodemailer 10
needs Node 20+, and Node 20 is end-of-life).
Images
- Docker Hub:
jeffcaldwellca/mkcertweb:4.4.0(also4.4,4,latest) - GHCR:
ghcr.io/jeffcaldwellca/mkcertweb:v4.4.0
mkcert Web UI 4.3.4
Fixed
-
UI-saved settings lost on container recreation (#45). The sample
docker-compose.ymlpersisted/app/certificates,/app/data, and the
mkcert root CA, but not/app/config— where settings saved from the web
UI (config/settings.json: webhook, email/ntfy notifications, theme, ...)
are stored. Pulling a new image therefore wiped them. The compose file now
mounts amkcert_configvolume at/app/config, and the manual
docker runexample indocs/DOCKER.mdincludes the config and CA
volumes.Upgrading an existing deployment: add the volume to your compose file
before recreating the container —services: mkcert-web-ui: volumes: - mkcert_config:/app/config volumes: mkcert_config: driver: local
Documentation
- Documented the certificate-expiry notification environment variables
(WEBHOOK_ENABLED,WEBHOOK_URL,NTFY_*,EMAIL_NOTIFICATIONS_ENABLED,
CERT_MONITORING_*) in the sampledocker-compose.ymland
docs/DOCKER.md— they existed but were not documented anywhere (#45). - Corrected
docs/SETTINGS.md, which still described the pre-4.0.0
precedence order: explicitly-set environment variables override
config/settings.json, not the other way around. - Fixed the theme variable name in
docs/DOCKER.md(THEME_MODE, not
DEFAULT_THEME).
Full Changelog: v4.3.3...v4.3.4
mkcert Web UI 4.3.3
Security
- Prototype pollution via upload filenames (CodeQL #169–171).
/api/upload
grouped files in a plain object keyed by the uploaded base name, so a file
named__proto__.pemwrote its multer file object ontoObject.prototype
(({}).cert). Grouping now uses aMap. Regression test added. - Companion-file deletion in
DELETE /api/certificate/:filenamenow re-runs
path containment on the derived-key.pem/.pemname instead of relying
on the primary filename's validation (CodeQL #104).
Full Changelog: v4.3.2...v4.3.3
mkcert Web UI 4.3.2
Fixed
-
OIDC/SSO login bounced straight back to the login page (#43). After a
successful OIDC callback, passport stored the user in the session andGET /
served the app, but/api/auth/statusonly recognised username/password
sessions (req.session.authenticated), so the frontend's auth check saw
authenticated: falseand redirected to/login. Auth state is now computed
by one helper (src/utils/authState.js) that understands both basic-auth
sessions and passport logins, and is used by/api/auth/status,GET /,
GET /login, andrequireAuth. The OIDC display name (falling back to
email) is now shown as the logged-in user. -
OIDC failures are now logged. The callback uses a custom passport
callback so the strategy's reason (issuer mismatch, bad nonce, expired
token, ...) is written to the server log instead of being swallowed by the
redirect to/login?error=oidc_failed. The login page also shows a
dedicated "single sign-on failed" message for that error. -
OIDC issuer taken from discovery.
passport-openidconnectcompares the
ID token'sissclaim with strict equality, so a trailing-slash difference
between the configured issuer and what the provider advertises (authentik
includes one; Keycloak/Entra don't) silently failed login. The strategy now
uses the discovery document'sissuerand warns at boot when it differs
from the configured value. -
Rate limiters now key per-user buckets for OIDC logins too (they looked for
req.user.username, which passport users don't have, so SSO users shared
the per-IPanonymousbucket). -
Removed a duplicate, un-rate-limited
/api/auth/methodsroute that shadowed
the rate-limited one whenever auth was enabled.
Added
- RP-initiated OIDC logout. When the provider advertises an
end_session_endpoint, logging out of an SSO session now also redirects the
browser to the provider to end its session (withid_token_hintand a
post_logout_redirect_uriback to/login), so "Login with SSO" no longer
silently signs the user straight back in. Register<origin>/loginas an
allowed post-logout redirect URI with your provider.
Security
- Cleared all 10 open Dependabot alerts: removed the unused
axios
devDependency (5 alerts), bumpedbody-parserto 1.20.6
(GHSA-v422-hmwv-36x6), and refreshed transitivebrace-expansionto 2.1.4 /
5.0.9 (GHSA-rgw5-rvv9-x895, GHSA-3jxr-9vmj-r5cp, GHSA-mh99-v99m-4gvg).
npm auditreports 0 vulnerabilities.
Removed
- Dead
src/routes/auth.jsandsrc/middleware/auth.js(never required by
server.js; they carried an older copy of the same auth logic and the same
OIDC status bug).
Changed
/api/auth/logoutno longer callsreq.logout()after destroying the
session — destroying the session already drops the passport user, and the
extra call only produced a spurious "session support" error in the log.
Full Changelog: v4.3.1...v4.3.2
mkcert Web UI 4.3.1
A dependency-security release clearing all seven open Dependabot alerts. No application code changes.
Security
- multer 2.1.1 → 2.2.0 — fixes two denial-of-service vectors in multipart parsing: crash via deeply nested field names (GHSA-72gw-mp4g-v24j, high) and disk exhaustion from incompletely cleaned-up aborted uploads (GHSA-3p4h-7m6x-2hcm, moderate). These were the only alerts with real exposure:
/api/uploadis reachable with a fetchable CSRF token when authentication is disabled (the Docker default). - nodemailer 8.0.7 → 9.0.3 — clears GHSA-p6gq-j5cr-w38f (high) plus three moderate advisories. None were exploitable as used (the email service never uses the
rawoption,jsonTransport,List-*headers, or OAuth2), but the fix for the high only exists on the 9.x line. The API surface the app uses (createTransport/sendMail/verify) is unchanged. - form-data 4.0.5 → 4.0.6 (dev-only, via axios) — CRLF injection in multipart names (GHSA-hmw2-7cc7-3qxx); test-suite exposure only.
npm audit now reports 0 vulnerabilities across all dependency scopes.
Full Changelog: v4.3.0...v4.3.1
