Skip to content

Commit 85ea4ba

Browse files
committed
server-ssl.js
📦[email protected] https://search.sigstore.dev/?logIndex=155832599 - [x] 📦add `simple-open-ssl` package - [x] 📦No longer need to provide daysRemaining - [x] 📦Remove auto restart - [x] 📦Remove auto restart countdown - [x] 📦Remove auto restart handler, use certificate callback to decide
1 parent 5b0b88b commit 85ea4ba

File tree

10 files changed

+37
-449
lines changed

10 files changed

+37
-449
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The easiest usage would be to serve a website:
1818
4. Run `node server-ssl.js`
1919
5. View your website at `https://localhost`
2020

21-
[![](https://i.imgur.com/q08yvC1.gif)](https://github.com/FirstTimeEZ/server-ssl/archive/refs/heads/main.zip)
21+
[![](https://i.imgur.com/0IVqrfn.gif)](https://github.com/FirstTimeEZ/server-ssl/archive/refs/heads/main.zip)
2222

2323
The default page/config is a simple [`API`](https://github.com/FirstTimeEZ/simple-api-router) that serves and displays the `time`
2424

@@ -33,7 +33,7 @@ The default page/config is a simple [`API`](https://github.com/FirstTimeEZ/simpl
3333
node server-ssl.js --letsEncrypt --domains=['www.ssl.boats','ssl.boats']
3434
```
3535

36-
[![](https://i.imgur.com/jsX4ND6.gif)](https://github.com/FirstTimeEZ/server-ssl/archive/refs/heads/main.zip)
36+
[![](https://i.imgur.com/BT8EEWj.gif)](https://github.com/FirstTimeEZ/server-ssl/archive/refs/heads/main.zip)
3737

3838
### Optional Arguments
3939

@@ -107,7 +107,6 @@ This layout keeps the project organized and maintainable, separating error handl
107107
│ └── 500.html
108108
109109
├── /ssl
110-
│ ├── /openssl
111110
│ ├── /production
112111
│ │ │
113112
│ │ ├── ...
@@ -150,7 +149,6 @@ Convert your `certificate` and `private key` to `PEM` format and place them in t
150149

151150
```
152151
├── /ssl
153-
│ ├── /openssl
154152
│ ├── /production <> staging
155153
│ │ │
156154
│ │ ├── ...

package-lock.json

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "server-ssl",
33
"author": "FirstTimeEZ",
4-
"version": "41.0.2",
4+
"version": "41.0.3",
55
"description": "Configurable SSL Server that runs on Node.js which can be used for development or production and can create and renew Lets Encrypt Certificates automatically using ACME",
66
"main": "template; do not import; read the Getting Started of the README, maybe you want to use: lets-encrypt-acme-client",
77
"type": "module",
@@ -26,9 +26,10 @@
2626
],
2727
"license": "Apache-2.0",
2828
"dependencies": {
29-
"lets-encrypt-acme-client": "^23.0.1",
3029
"base-acme-client": "^23.0.1",
31-
"simple-api-router": "^1.1.1"
30+
"lets-encrypt-acme-client": "^24.0.1",
31+
"simple-api-router": "^1.1.1",
32+
"simple-open-ssl": "^1.0.2"
3233
},
3334
"repository": {
3435
"type": "git",

server-ssl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ const HTTPS_SERVER = createServerHTTPS(STATE.loadDefaultSecureContext(), (req, r
4040

4141
STATE.startHttpChallengeListener(); // Lets Encrypt! HTTP-01 ACME Challenge Mixin - Always Redirects HTTP to HTTPS unless doing a ACME Challenge
4242

43-
STATE.loadLetsEncryptAcmeDaemon(() => console.log("Restarting Soon"), 30, () => { STATE.loadNewSecureContext(HTTPS_SERVER); STATE.daysRemaining = 89; });
44-
// ^^ Restart Callbacks cb/seconds ^^ ^^ Update Certificates Callback
43+
STATE.loadLetsEncryptAcmeDaemon(() => { STATE.loadNewSecureContext(HTTPS_SERVER); });
44+
// ^^ Update Certificates Callback
4545
STATE.checkNodeForUpdates(); // Check Node.js version
-4.89 MB
Binary file not shown.

ssl/openssl/bin/libssl-3-x64.dll

-909 KB
Binary file not shown.

ssl/openssl/bin/openssl.exe

-975 KB
Binary file not shown.

ssl/openssl/bin/zlib1.dll

-118 KB
Binary file not shown.

0 commit comments

Comments
 (0)