Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vladmandic/piacme

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vladmandic/piacme - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

package.json
{
"name": "@vladmandic/piacme",
"version": "0.1.8",
"version": "0.1.9",
"description": "Simple ACME/LetsEncrypt HTTP/SSL Certificate Management",

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

@@ -201,3 +201,3 @@ const log = require('@vladmandic/pilogger');

if (fs.existsSync(config.fullChain)) {
if (initial) log.info('ACME certificate: check:', config.fullChain);
if (initial) log.info('ACME certificate check:', config.fullChain);
const ssl = await parseCert();

@@ -242,9 +242,9 @@ const now = new Date();

if (ssl.account && !ssl.account.error) {
log.info(`SSL account: ${ssl.account.contact} created: ${moment(ssl.account.createdAt).format('YYYY-MM-DD HH:mm:ss')} `);
log.info(`SSL account: ${ssl.account.contact} Created: ${moment(ssl.account.createdAt).format('YYYY-MM-DD HH:mm:ss')} `);
} else log.warn(`SSL account error: ${ssl.account.error}`);
if (ssl.serverKey && !ssl.serverKey.error && ssl.accountKey && !ssl.accountKey.error) {
log.info(`SSL keys server:${ssl.serverKey.type} account:${ssl.accountKey.type} `);
} else log.warn(`SSL keys error server:${ssl.serverKey.error} account:${ssl.account.error}`);
log.info(`SSL keys server: ${ssl.serverKey.type} Account: ${ssl.accountKey.type} `);
} else log.warn(`SSL keys error server: ${ssl.serverKey.error} Account: ${ssl.account.error}`);
if (ssl.fullChain && !ssl.fullChain.error) {
log.info(`SSL certificate subject:${ssl.fullChain.subject} issuer:${ssl.fullChain.issuer}`);
log.info(`SSL certificate subject: ${ssl.fullChain.subject} Issuer: ${ssl.fullChain.issuer}`);
} else log.warn(`SSL certificate error: ${ssl.fullChain.error}`);

@@ -259,3 +259,3 @@ config.SSL = { Key: `../${config.ServerKeyFile}`, Crt: `../${config.fullChain}` };

await getCert();
log.state(`SSL certificate expires in ${config.days.toFixed(1)} days, ${config.days <= 3 ? 'renewing now' : 'skipping renewal'}`);
log.state('SSL certificate expires in', config.days.toFixed(1), `days: ${config.days <= 3 ? 'renewing now' : 'skipping renewal'}`);
setTimeout(() => monitorCert(), 1000 * 60 * 60 * 12);

@@ -262,0 +262,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc