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.
@happy-gastro/csr-generator
Advanced tools
Generate CSR with HTTP request on every platform withouut OpenSSL or other dependecies
This package provides a simple and straightforward way to generate Certificate Signing Requests (CSRs) and keys using HTTP SSL service so you don't need OpenSSL installed. It utilizes the csrgenerator.com
service to facilitate the generation process.
npm install @happy-gastro/csr-key-generator
To use this package, import the generateCSRAndKey function and call it with optional parameters:
import { generateCSRAndKey } from '@happy-gastro/csr-key-generator';
// Example usage:
generateCSRAndKey('HU', 'happygastro.hu', '', 'Software development', 'Happy Gastro Kft.', 'Pest megye', 'Hungary', '')
.then((result) => {
console.log('Generated CSR:', result.certificateRequest);
console.log('Generated Key:', result.privateKey);
})
.catch((error) => {
console.error('Error generating CSR and key:', error);
});
generateCSRAndKey(C: string, CN: string, subject: string, OU: string, O: string, L: string, ST: string, SC: string): Promise<object>
Here are the fields you can fill with your own parameters:
C: The Country field of CSR.
CN: The Common name field of CSR.
subject: (Optional) Subject Alt names.
OU: Organizational Unit field of CSR.
O: Organization field of CSR.
L: Locality field of CSR.
ST: State field of CSR.
SC: SC field of CSR.
import { generateCSRAndKey } from '@happy-gastro/csr-key-generator';
// Example usage:
generateCSRAndKey('HU', 'happygastro.hu', '', 'Software development', 'Happy Gastro Kft.', 'Pest megye', 'Hungary', '')
.then((result) => {
console.log('Generated CSR:', result.certificateRequest);
console.log('Generated Key:', result.privateKey);
})
.catch((error) => {
console.error('Error generating CSR and key:', error);
});
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is developed and maintained by Farkas Ferenc.
Happy Gastro Ltd.
FAQs
Generate CSR with HTTP request on every platform withouut OpenSSL or other dependecies
The npm package @happy-gastro/csr-generator receives a total of 0 weekly downloads. As such, @happy-gastro/csr-generator popularity was classified as not popular.
We found that @happy-gastro/csr-generator 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.
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.