My domain is: skyjs.net, www.skyjs.net
I ran this command:
node server.js
It produced this output:
Fetching certificate for 'skyjs.net' to use as default for HTTPS server...
[acme-v2] handled(?) rejection as errback:
Error: connect ECONNREFUSED 165.227.37.46:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
Error loading/registering certificate for 'skyjs.net':
{ Error: connect ECONNREFUSED 165.227.37.46:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '165.227.37.46',
port: 80 }
(node:19962) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 165.227.37.46:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
(node:19962) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19962) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My web server is (include version):
node script
The operating system my web server runs on is (include version):
centos
My hosting provider, if applicable, is:
easydns
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
lgreenlock-express
My script
'use strict';
require('greenlock-express').create({
version:'draft-11',
server:'https://acme-staging-v02.api.letsencrypt.org/directory',
// server:'https://acme-v02.api.letsencrypt.org/directory',
email: 'info@mail.jacob-bogers.com' // The email address of the ACME user / hosting provider
, agreeTos: true // You must accept the ToS as the host which handles the certs
, approvedDomains: ['skyjs.net','www.skyjs.net']
, configDir: '~/.config/acme/' // Writable directory where certs will be saved
, communityMember: true // Join the community to get notified of important updates
, telemetry: true // Contribute telemetry data to the project
// Using your express app:
// simply export it as-is, then include it here
, app: function (req, res) {
res.setHeader('Content-Type', 'text/html; charset=utf-8')
res.end('Hello, World!\n\n💚 🔒.js');
}
//, debug: true
}).listen(8080, 8081);