@mbsks/rspfx-manifest-server
v0.0.15
Published
RSPFX HTTPS manifest server for the SharePoint workbench (:4321)
Readme
@mbsks/rspfx-manifest-server
Development certificates for RSPFX — an SPFx-compatible build toolchain. Replaces Heft + webpack + gulp. Works with Vite, Rsbuild, and Rspack.
Generates and caches the self-signed TLS key/cert pair used by the local HTTPS dev server (Vite · Rsbuild · Rspack dev servers). Certificates live in ~/.rspfx/certs and are reused across runs.
Install
npm i @mbsks/rspfx-manifest-serverUsage
import { ensureCertificates } from '@mbsks/rspfx-manifest-server';
const { key, cert } = await ensureCertificates('.rspfx/certs');API
ensureCertificates(dir, hostname?)— generate/load self-signed key + cert (writeskey.pem,cert.pem, andcert.pem.trust.txtwith trust instructions; warns about CORS /NET::ERR_CERT_AUTHORITY_INVALIDif untrusted)validateCustomHostname(hostname)— allowlist check for custom SAN hostnamegetCertsDir()— default~/.rspfx/certsgetCertStatus(dir, hostname?)—CertStatus(exists, valid, expiry, SAN mismatch viaX509Certificate)isCertTrusted(certPath)— best-effort OS trust check (security verify-certon macOS,certutil -verifyon Windows)formatTrustInstructions(dir)— per-OS trust command string
See docs/getting-started.md#cert-trust for user-facing trust steps and rspfx doctor for automated checks.
Links
- Documentation — Getting Started · Cert trust
- GitHub
- License: MIT
