lets-encrypt-certificate-manager
dont use this package on production server
Lets Encrypt certificate manager encapsulates Greenlock and does auto renew Let's Encrypt certificates.
// create and manage certificate for a domainconst https = ;const CertificateManager = ; CertificateManagerdomain = 'www.example.com';CertificateManageremail = 'admin@example.com';CertificateManagerhttpToHttpsRedirectEnabled = true; // redirects all traffic from http to https CertificateManagerip = '12.123.123.21';//CertificateManager.version = 'draft-12'; // default is 'draft-12'//CertificateManager.isProduction = true; // default is true//CertificateManager.renewCertWithin = 60 * 24 * 60 * 60 * 1000; // default is 60 * 24 * 60 * 60 * 1000//CertificateManager.renewCertBy = 30 * 24 * 60 * 60 * 1000; // default is 30 * 24 * 60 * 60 * 1000//CertificateManager.debugEnabled = true; // default is truevar greenlock = CertificateManager; https;