Fix the Let’s Encrypt example in the README #5

Open
opened 2026-11-02 12:28:45 +01:00 by aral · 0 comments
Owner

The example under “At hostname with automatically-provisioned Let’s Encrypt certificates” (README.md, lines 121 to 135) has two errors:

  • import os form 'os' is a syntax error. It should be import os from 'os'.
  • The example creates options but never passes it to createServer(). Without options.domains, createServer() uses locally-trusted certificates, so the example never provisions Let’s Encrypt certificates. The paragraph after the example says to pass options as the first argument: https.createServer(options, (request, response) => { … }).

The paragraph on line 141 also needs a full stop after the Auto Encrypt link.

The example under “At hostname with automatically-provisioned Let’s Encrypt certificates” (README.md, lines 121 to 135) has two errors: - `import os form 'os'` is a syntax error. It should be `import os from 'os'`. - The example creates `options` but never passes it to `createServer()`. Without `options.domains`, `createServer()` uses locally-trusted certificates, so the example never provisions Let’s Encrypt certificates. The paragraph after the example says to pass `options` as the first argument: `https.createServer(options, (request, response) => { … })`. The paragraph on line 141 also needs a full stop after the Auto Encrypt link.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
small-tech/https#5
No description provided.