@vladmandic/piacme
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"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 @@ } |
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
17728