
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@rsbuild/plugin-basic-ssl
Advanced tools
Generate an untrusted, self-signed certificate for the HTTPS server.
Generate an untrusted, self-signed certificate for the HTTPS server.
The Basic SSL plugin will automatically generate a self-signed certificate and set the server.https option. When you visit the page, your browser will indicate that the certificate is not trusted. You can access the HTTPS page after manually confirming this.
Install:
npm add @rsbuild/plugin-basic-ssl -D
Add plugin to your rsbuild.config.ts:
// rsbuild.config.ts
import { pluginBasicSsl } from "@rsbuild/plugin-basic-ssl";
export default {
plugins: [pluginBasicSsl()],
};
Then visit the https URL of the page, and confirm in your browser.
Filename of the generated certificate.
string'fake-cert.pem'pluginBasicSsl({
filename: "foo.pem",
});
Output path of the generated certificate.
string__dirnameimport path from "node:path";
pluginBasicSsl({
outputPath: path.join(__dirname, "node_modules/.cache/cert"),
});
Attributes passing to selfsigned, see selfsigned for details.
CertificateField[]const defaultAttrs = [{ name: "commonName", value: "localhost" }];
pluginBasicSsl({
selfsignedAttrs: [{ name: "commonName", value: "example.com" }],
});
Options passing to selfsigned, see selfsigned - Options for details.
SelfsignedOptionsconst defaultOptions = {
days: 30,
keySize: 2048,
};
pluginBasicSsl({
selfsignedOptions: {
days: 100,
},
});
MIT.
FAQs
Generate an untrusted, self-signed certificate for the HTTPS server.
The npm package @rsbuild/plugin-basic-ssl receives a total of 12,778 weekly downloads. As such, @rsbuild/plugin-basic-ssl popularity was classified as popular.
We found that @rsbuild/plugin-basic-ssl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.