Socket
Socket
Sign inDemoInstall

selfsigned

Package Overview
Dependencies
4
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.4.0

5

index.d.ts

@@ -45,2 +45,7 @@ import { pki } from 'node-forge'

clientCertificateCN?: string
/**
* the size for the client private key in bits
* @default 1024
*/
clientCertificateKeySize?: number
}

@@ -47,0 +52,0 @@

2

index.js

@@ -129,3 +129,3 @@ var forge = require('node-forge');

if (options && options.clientCertificate) {
var clientkeys = forge.pki.rsa.generateKeyPair(1024);
var clientkeys = forge.pki.rsa.generateKeyPair(options.clientCertificateKeySize || 1024);
var clientcert = forge.pki.createCertificate();

@@ -132,0 +132,0 @@ clientcert.serialNumber = toPositiveHex(forge.util.bytesToHex(forge.random.getBytesSync(9)));

{
"name": "selfsigned",
"version": "2.3.0",
"version": "2.4.0",
"description": "Generate self signed certificates private and public keys",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc