sensor.live-things-registry
Advanced tools
Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "sensor.live-things-registry", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,3 +15,3 @@ const forge = require('node-forge'); | ||
let csr = forge.pki.createCertificationRequest(); | ||
csr.publicKey = public_key; | ||
csr.publicKey = forge.pki.publicKeyToPem(public_key); | ||
csr.setSubject([{ | ||
@@ -42,3 +42,3 @@ name: 'commonName', | ||
// sign certification request | ||
csr.sign(private_key, forge.md.sha256.create()); | ||
csr.sign(forge.pki.privateKeyToPem(private_key), forge.md.sha256.create()); | ||
// PEM-format keys and csr | ||
@@ -45,0 +45,0 @@ return forge.pki.certificationRequestToPem(csr); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9008