Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
¿Cómo renovar los certificados greenlock-express con fuerza en cualquier momento?

Tengo archivos de certificados de CA en "greenlock.d/live/URL_PATH/". Su fecha de vencimiento es agosto de 2022.

Pero quiero renovarlos ahora mismo para comprobar si se están renovando o no. Por favor, sugiérame cómo puedo renovarlos en cualquier momento.

Que he hecho:

He probado varias soluciones como:

  • Intenté algunos comandos
  • Cambiar el tiempo de renovación ("renewAt") en "greenlock.d/config.json"

Código:

aplicación.js

 'use strict'; var app = function(req, res) { res.end('Hello, Encrypted World!'); }; module.exports = app;

servidor.js

 'use strict'; var beapp = require('./app.js'); require('greenlock-express') .init({ packageRoot: __dirname, maintainerEmail: "EMAIL_ID", configDir: './greenlock.d', cluster: true }) // .serve(beapp); .ready(httpsWorker); function httpsWorker(glx) { var httpsServer = glx.httpsServer(null, beapp); httpsServer.listen(443, "0.0.0.0", function () { console.info("Listening on ", httpsServer.address()); }); }

greenlock.d/config.json

 { "defaults": { "store": { "basePath": "./greenlock.d", "module": "greenlock-store-fs" }, "challenges": { "http-01": { "module": "acme-http-01-standalone" } }, "renewOffset": "-45d", "renewStagger": "3d", "accountKeyType": "EC-P256", "serverKeyType": "RSA-2048", "subscriberEmail": "EMAIL_ID" }, "sites": [ { "subject": "URL_PATH", "altnames": [ "URL_PATH" ], "renewAt": 1 } ] }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

  • Ejecute estos comandos secuencialmente:
  1. inicio npm
  2. npm install --save greenlock-express@v4
  3. npx greenlock init --config-dir ./greenlock.d --maintainer-email 'jon@example.com'
  4. npx greenlock add --subject ejemplo.com --altnames ejemplo.com
  5. nodo servidor.js

Referencia: https://www.npmjs.com/package/greenlock-express#1-create-your-project

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!