Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@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.
If you need to customize the compilation behavior of Sass, you can use the following configs.
Filename of the generated certificate.
string
'fake-cert.pem'
pluginBasicSsl({
filename: "foo.pem",
});
Output path of the generated certificate.
string
__dirname
import 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.
SelfsignedOptions
const 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 3,039 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 3 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's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.