Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.