emailengine-app 2.79.9 → 2.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +49 -0
- package/config/default.toml +5 -1
- package/data/google-crawlers.json +1 -1
- package/encrypt.js +43 -0
- package/lib/account/account-state.js +62 -0
- package/lib/account.js +34 -2
- package/lib/api-routes/account-routes.js +20 -0
- package/lib/api-routes/index.js +1 -1
- package/lib/api-routes/settings-routes.js +17 -2
- package/lib/autodetect-imap-settings.js +349 -47
- package/lib/cert-handler.js +62 -0
- package/lib/consts.js +50 -6
- package/lib/db.js +12 -0
- package/lib/egress-fetch.js +21 -9
- package/lib/email-client/base-client.js +234 -66
- package/lib/email-client/credential-errors.js +118 -0
- package/lib/email-client/gmail/gmail-api.js +2 -1
- package/lib/email-client/gmail-client.js +70 -64
- package/lib/email-client/imap/connection-errors.js +52 -0
- package/lib/email-client/imap/listing-diff.js +47 -6
- package/lib/email-client/imap/mailbox.js +457 -379
- package/lib/email-client/imap/subconnection.js +15 -11
- package/lib/email-client/imap/sync-operations.js +46 -59
- package/lib/email-client/imap-client.js +136 -95
- package/lib/email-client/message-builder.js +11 -11
- package/lib/email-client/outlook/graph-api.js +2 -1
- package/lib/email-client/outlook-client.js +219 -106
- package/lib/imap-proxy-auth.js +58 -3
- package/lib/imapproxy/imap-server.js +53 -62
- package/lib/lua/h-del-if-equals.lua +39 -0
- package/lib/lua/h-set-if-equals.lua +39 -0
- package/lib/routes-ui.js +4 -34
- package/lib/schemas.js +32 -0
- package/lib/security-headers.js +15 -0
- package/lib/tls/context.js +376 -0
- package/lib/tls/der.js +223 -0
- package/lib/tls/provision.js +555 -0
- package/lib/tls/self-signed.js +282 -0
- package/lib/tls/status.js +431 -0
- package/lib/tls/store.js +666 -0
- package/lib/tools.js +72 -27
- package/lib/ui-routes/account-routes.js +43 -30
- package/lib/ui-routes/admin-config-routes.js +22 -1
- package/lib/ui-routes/auth-routes.js +16 -1
- package/lib/ui-routes/internals-routes.js +3 -5
- package/lib/ui-routes/network-config-routes.js +54 -45
- package/lib/ui-routes/tls-config-routes.js +581 -0
- package/lib/utils/mailbox-path.js +51 -0
- package/lib/utils/severity.js +31 -0
- package/package.json +4 -4
- package/sbom.json +1 -1
- package/server.js +16 -0
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +11 -0
- package/static/js/app.js +34 -0
- package/static/js/public.js +6 -2
- package/static/js/ui.js +8 -25
- package/static/licenses.html +328 -1257
- package/translations/messages.pot +87 -87
- package/views/account/login-redirect.hbs +22 -0
- package/views/config/imap-proxy.hbs +0 -3
- package/views/config/smtp.hbs +0 -3
- package/views/config/tls-upload.hbs +81 -0
- package/views/config/tls.hbs +492 -0
- package/views/partials/side_menu.hbs +1 -0
- package/views/partials/tls_security_card.hbs +25 -53
- package/views/partials/ui/alert-banner.hbs +3 -2
- package/views/partials/ui/badge.hbs +6 -2
- package/views/partials/ui/btn.hbs +5 -2
- package/workers/api.js +93 -134
- package/workers/imap-proxy.js +4 -1
- package/workers/smtp.js +51 -44
- package/views/partials/tls_security_js.hbs +0 -64
- package/views/partials/tls_security_modal.hbs +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Content-Type: text/plain; charset=ascii\n"
|
|
4
|
-
"POT-Creation-Date: 2026-09-
|
|
4
|
+
"POT-Creation-Date: 2026-09-09 01:28+0000\n"
|
|
5
5
|
|
|
6
6
|
#: views/error.hbs:6
|
|
7
|
-
#: workers/api.js:
|
|
7
|
+
#: workers/api.js:3119
|
|
8
8
|
msgid "Something went wrong"
|
|
9
9
|
msgstr ""
|
|
10
10
|
|
|
@@ -27,10 +27,6 @@ msgid_plural "%d days"
|
|
|
27
27
|
msgstr[0] ""
|
|
28
28
|
msgstr[1] ""
|
|
29
29
|
|
|
30
|
-
#: views/redirect.hbs:1
|
|
31
|
-
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
32
|
-
msgstr ""
|
|
33
|
-
|
|
34
30
|
#: views/oauth-scope-error.hbs:5
|
|
35
31
|
msgid "Insufficient Permissions"
|
|
36
32
|
msgstr ""
|
|
@@ -106,42 +102,8 @@ msgid ""
|
|
|
106
102
|
"received."
|
|
107
103
|
msgstr ""
|
|
108
104
|
|
|
109
|
-
#: views/
|
|
110
|
-
msgid "
|
|
111
|
-
msgstr ""
|
|
112
|
-
|
|
113
|
-
#: views/accounts/register/imap.hbs:19
|
|
114
|
-
msgid "Enter your full name"
|
|
115
|
-
msgstr ""
|
|
116
|
-
|
|
117
|
-
#: views/accounts/register/imap.hbs:35
|
|
118
|
-
msgid "This setup link is restricted to this email address"
|
|
119
|
-
msgstr ""
|
|
120
|
-
|
|
121
|
-
#: views/accounts/register/imap.hbs:37
|
|
122
|
-
msgid "Enter your email address"
|
|
123
|
-
msgstr ""
|
|
124
|
-
|
|
125
|
-
#: views/accounts/register/imap.hbs:43
|
|
126
|
-
#: views/accounts/register/imap-server.hbs:47
|
|
127
|
-
#: views/accounts/register/imap-server.hbs:154
|
|
128
|
-
msgid "Password"
|
|
129
|
-
msgstr ""
|
|
130
|
-
|
|
131
|
-
#: views/accounts/register/imap.hbs:49
|
|
132
|
-
msgid "Enter your account password"
|
|
133
|
-
msgstr ""
|
|
134
|
-
|
|
135
|
-
#: views/accounts/register/imap.hbs:55
|
|
136
|
-
msgid "Continue"
|
|
137
|
-
msgstr ""
|
|
138
|
-
|
|
139
|
-
#: views/accounts/register/index.hbs:6
|
|
140
|
-
msgid "Choose your email account provider"
|
|
141
|
-
msgstr ""
|
|
142
|
-
|
|
143
|
-
#: views/accounts/register/index.hbs:19
|
|
144
|
-
msgid "Standard IMAP"
|
|
105
|
+
#: views/redirect.hbs:1
|
|
106
|
+
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
145
107
|
msgstr ""
|
|
146
108
|
|
|
147
109
|
#: views/accounts/register/imap-server.hbs:23
|
|
@@ -159,6 +121,12 @@ msgstr ""
|
|
|
159
121
|
msgid "Username"
|
|
160
122
|
msgstr ""
|
|
161
123
|
|
|
124
|
+
#: views/accounts/register/imap-server.hbs:47
|
|
125
|
+
#: views/accounts/register/imap-server.hbs:154
|
|
126
|
+
#: views/accounts/register/imap.hbs:43
|
|
127
|
+
msgid "Password"
|
|
128
|
+
msgstr ""
|
|
129
|
+
|
|
162
130
|
#: views/accounts/register/imap-server.hbs:59
|
|
163
131
|
#: views/accounts/register/imap-server.hbs:166
|
|
164
132
|
msgid "Important"
|
|
@@ -263,6 +231,38 @@ msgstr ""
|
|
|
263
231
|
msgid "Request failed."
|
|
264
232
|
msgstr ""
|
|
265
233
|
|
|
234
|
+
#: views/accounts/register/imap.hbs:13
|
|
235
|
+
msgid "Your name"
|
|
236
|
+
msgstr ""
|
|
237
|
+
|
|
238
|
+
#: views/accounts/register/imap.hbs:19
|
|
239
|
+
msgid "Enter your full name"
|
|
240
|
+
msgstr ""
|
|
241
|
+
|
|
242
|
+
#: views/accounts/register/imap.hbs:35
|
|
243
|
+
msgid "This setup link is restricted to this email address"
|
|
244
|
+
msgstr ""
|
|
245
|
+
|
|
246
|
+
#: views/accounts/register/imap.hbs:37
|
|
247
|
+
msgid "Enter your email address"
|
|
248
|
+
msgstr ""
|
|
249
|
+
|
|
250
|
+
#: views/accounts/register/imap.hbs:49
|
|
251
|
+
msgid "Enter your account password"
|
|
252
|
+
msgstr ""
|
|
253
|
+
|
|
254
|
+
#: views/accounts/register/imap.hbs:55
|
|
255
|
+
msgid "Continue"
|
|
256
|
+
msgstr ""
|
|
257
|
+
|
|
258
|
+
#: views/accounts/register/index.hbs:6
|
|
259
|
+
msgid "Choose your email account provider"
|
|
260
|
+
msgstr ""
|
|
261
|
+
|
|
262
|
+
#: views/accounts/register/index.hbs:19
|
|
263
|
+
msgid "Standard IMAP"
|
|
264
|
+
msgstr ""
|
|
265
|
+
|
|
266
266
|
#: views/account-identity-error.hbs:7
|
|
267
267
|
msgid "Wrong Email Account"
|
|
268
268
|
msgstr ""
|
|
@@ -287,7 +287,7 @@ msgid ""
|
|
|
287
287
|
"contact the service that sent you this link."
|
|
288
288
|
msgstr ""
|
|
289
289
|
|
|
290
|
-
#: lib/autodetect-imap-settings.js:
|
|
290
|
+
#: lib/autodetect-imap-settings.js:134
|
|
291
291
|
msgid ""
|
|
292
292
|
"Microsoft has disabled password-based sign-ins (including app passwords) "
|
|
293
293
|
"for Outlook.com, Hotmail.com, and Microsoft 365 email accounts. To "
|
|
@@ -295,103 +295,103 @@ msgid ""
|
|
|
295
295
|
"connect your account."
|
|
296
296
|
msgstr ""
|
|
297
297
|
|
|
298
|
-
#: lib/tools.js:
|
|
298
|
+
#: lib/tools.js:1534
|
|
299
299
|
#: lib/ui-routes/unsubscribe-routes.js:31
|
|
300
300
|
#: lib/ui-routes/unsubscribe-routes.js:99
|
|
301
301
|
msgid "Invalid input"
|
|
302
302
|
msgstr ""
|
|
303
303
|
|
|
304
|
-
#: lib/tools.js:
|
|
304
|
+
#: lib/tools.js:2399
|
|
305
305
|
msgid "Signature validation failed"
|
|
306
306
|
msgstr ""
|
|
307
307
|
|
|
308
|
-
#: lib/tools.js:
|
|
309
|
-
#: lib/tools.js:
|
|
310
|
-
#: lib/tools.js:
|
|
311
|
-
#: lib/ui-routes/account-routes.js:
|
|
308
|
+
#: lib/tools.js:2422
|
|
309
|
+
#: lib/tools.js:2428
|
|
310
|
+
#: lib/tools.js:2433
|
|
311
|
+
#: lib/ui-routes/account-routes.js:1157
|
|
312
312
|
msgid "Invalid or expired account setup URL"
|
|
313
313
|
msgstr ""
|
|
314
314
|
|
|
315
|
-
#: lib/ui-routes/account-routes.js:
|
|
316
|
-
#: lib/ui-routes/account-routes.js:
|
|
317
|
-
#: lib/ui-routes/account-routes.js:
|
|
318
|
-
#: lib/ui-routes/account-routes.js:
|
|
319
|
-
#: lib/ui-routes/account-routes.js:
|
|
320
|
-
#: lib/ui-routes/account-routes.js:
|
|
315
|
+
#: lib/ui-routes/account-routes.js:481
|
|
316
|
+
#: lib/ui-routes/account-routes.js:525
|
|
317
|
+
#: lib/ui-routes/account-routes.js:769
|
|
318
|
+
#: lib/ui-routes/account-routes.js:826
|
|
319
|
+
#: lib/ui-routes/account-routes.js:883
|
|
320
|
+
#: lib/ui-routes/account-routes.js:1270
|
|
321
321
|
#: lib/ui-routes/route-helpers.js:403
|
|
322
|
-
#: workers/api.js:
|
|
323
|
-
#: workers/api.js:
|
|
322
|
+
#: workers/api.js:2291
|
|
323
|
+
#: workers/api.js:2361
|
|
324
324
|
msgid "Email Account Setup"
|
|
325
325
|
msgstr ""
|
|
326
326
|
|
|
327
|
-
#: lib/ui-routes/account-routes.js:
|
|
328
|
-
#: lib/ui-routes/account-routes.js:
|
|
327
|
+
#: lib/ui-routes/account-routes.js:550
|
|
328
|
+
#: lib/ui-routes/account-routes.js:582
|
|
329
329
|
#: lib/ui-routes/unsubscribe-routes.js:71
|
|
330
330
|
msgid "Invalid request. Check your input and try again."
|
|
331
331
|
msgstr ""
|
|
332
332
|
|
|
333
|
-
#: lib/ui-routes/account-routes.js:
|
|
333
|
+
#: lib/ui-routes/account-routes.js:715
|
|
334
334
|
msgid "Too many attempts for this setup link. Request a new setup link to continue."
|
|
335
335
|
msgstr ""
|
|
336
336
|
|
|
337
|
-
#: lib/ui-routes/account-routes.js:
|
|
338
|
-
#: lib/ui-routes/account-routes.js:
|
|
337
|
+
#: lib/ui-routes/account-routes.js:870
|
|
338
|
+
#: lib/ui-routes/account-routes.js:1207
|
|
339
339
|
msgid "Couldn't set up account. Try again."
|
|
340
340
|
msgstr ""
|
|
341
341
|
|
|
342
|
-
#: lib/ui-routes/account-routes.js:
|
|
343
|
-
#: lib/ui-routes/account-routes.js:
|
|
342
|
+
#: lib/ui-routes/account-routes.js:958
|
|
343
|
+
#: lib/ui-routes/account-routes.js:998
|
|
344
344
|
#: lib/ui-routes/admin-entities-routes.js:2077
|
|
345
345
|
msgid "Server hostname was not found"
|
|
346
346
|
msgstr ""
|
|
347
347
|
|
|
348
|
-
#: lib/ui-routes/account-routes.js:
|
|
349
|
-
#: lib/ui-routes/account-routes.js:
|
|
348
|
+
#: lib/ui-routes/account-routes.js:961
|
|
349
|
+
#: lib/ui-routes/account-routes.js:1001
|
|
350
350
|
#: lib/ui-routes/admin-entities-routes.js:2080
|
|
351
351
|
msgid "Invalid username or password"
|
|
352
352
|
msgstr ""
|
|
353
353
|
|
|
354
|
-
#: lib/ui-routes/account-routes.js:
|
|
355
|
-
#: lib/ui-routes/account-routes.js:
|
|
354
|
+
#: lib/ui-routes/account-routes.js:966
|
|
355
|
+
#: lib/ui-routes/account-routes.js:1018
|
|
356
356
|
#: lib/ui-routes/admin-entities-routes.js:2097
|
|
357
357
|
msgid "Connection timed out"
|
|
358
358
|
msgstr ""
|
|
359
359
|
|
|
360
|
-
#: lib/ui-routes/account-routes.js:
|
|
361
|
-
#: lib/ui-routes/account-routes.js:
|
|
360
|
+
#: lib/ui-routes/account-routes.js:972
|
|
361
|
+
#: lib/ui-routes/account-routes.js:1021
|
|
362
362
|
#: lib/ui-routes/admin-entities-routes.js:2100
|
|
363
363
|
msgid "Could not connect to server"
|
|
364
364
|
msgstr ""
|
|
365
365
|
|
|
366
|
-
#: lib/ui-routes/account-routes.js:
|
|
367
|
-
#: lib/ui-routes/account-routes.js:
|
|
368
|
-
#: lib/ui-routes/account-routes.js:
|
|
369
|
-
#: lib/ui-routes/account-routes.js:
|
|
366
|
+
#: lib/ui-routes/account-routes.js:985
|
|
367
|
+
#: lib/ui-routes/account-routes.js:989
|
|
368
|
+
#: lib/ui-routes/account-routes.js:1010
|
|
369
|
+
#: lib/ui-routes/account-routes.js:1014
|
|
370
370
|
#: lib/ui-routes/admin-entities-routes.js:2089
|
|
371
371
|
#: lib/ui-routes/admin-entities-routes.js:2093
|
|
372
372
|
msgid "TLS protocol error"
|
|
373
373
|
msgstr ""
|
|
374
374
|
|
|
375
|
-
#: lib/ui-routes/account-routes.js:
|
|
375
|
+
#: lib/ui-routes/account-routes.js:1004
|
|
376
376
|
#: lib/ui-routes/admin-entities-routes.js:2083
|
|
377
377
|
msgid "Authentication credentials were not provided"
|
|
378
378
|
msgstr ""
|
|
379
379
|
|
|
380
|
-
#: lib/ui-routes/account-routes.js:
|
|
380
|
+
#: lib/ui-routes/account-routes.js:1007
|
|
381
381
|
#: lib/ui-routes/admin-entities-routes.js:2086
|
|
382
382
|
msgid "OAuth2 authentication failed"
|
|
383
383
|
msgstr ""
|
|
384
384
|
|
|
385
|
-
#: lib/ui-routes/account-routes.js:
|
|
385
|
+
#: lib/ui-routes/account-routes.js:1024
|
|
386
386
|
#: lib/ui-routes/admin-entities-routes.js:2103
|
|
387
387
|
msgid "Unexpected server response"
|
|
388
388
|
msgstr ""
|
|
389
389
|
|
|
390
|
-
#: lib/ui-routes/account-routes.js:
|
|
390
|
+
#: lib/ui-routes/account-routes.js:1145
|
|
391
391
|
msgid "Temporary error, please try again"
|
|
392
392
|
msgstr ""
|
|
393
393
|
|
|
394
|
-
#: lib/ui-routes/admin-config-routes.js:
|
|
394
|
+
#: lib/ui-routes/admin-config-routes.js:182
|
|
395
395
|
msgid "Invalid API key for OpenAI"
|
|
396
396
|
msgstr ""
|
|
397
397
|
|
|
@@ -445,37 +445,37 @@ msgstr ""
|
|
|
445
445
|
msgid "Couldn't process request. Try again."
|
|
446
446
|
msgstr ""
|
|
447
447
|
|
|
448
|
-
#: workers/api.js:
|
|
448
|
+
#: workers/api.js:2220
|
|
449
449
|
msgid ""
|
|
450
450
|
"The sign-in was cancelled or the requested access was not granted. Open the "
|
|
451
451
|
"account setup link again to retry."
|
|
452
452
|
msgstr ""
|
|
453
453
|
|
|
454
|
-
#: workers/api.js:
|
|
454
|
+
#: workers/api.js:2229
|
|
455
455
|
msgid "Sign-in with the email provider failed: %s"
|
|
456
456
|
msgstr ""
|
|
457
457
|
|
|
458
|
-
#: workers/api.js:
|
|
458
|
+
#: workers/api.js:2233
|
|
459
459
|
msgid "Sign-in with the email provider failed: no authorization code was received"
|
|
460
460
|
msgstr ""
|
|
461
461
|
|
|
462
|
-
#: workers/api.js:
|
|
462
|
+
#: workers/api.js:2239
|
|
463
463
|
msgid "Sign-in with the email provider failed: the request state is not valid"
|
|
464
464
|
msgstr ""
|
|
465
465
|
|
|
466
|
-
#: workers/api.js:
|
|
466
|
+
#: workers/api.js:2245
|
|
467
467
|
msgid ""
|
|
468
468
|
"The account setup session has expired or was already used. Open the account "
|
|
469
469
|
"setup link again to retry."
|
|
470
470
|
msgstr ""
|
|
471
471
|
|
|
472
|
-
#: workers/api.js:
|
|
472
|
+
#: workers/api.js:2252
|
|
473
473
|
msgid ""
|
|
474
474
|
"Sign-in with the email provider failed: the stored setup session is not "
|
|
475
475
|
"valid"
|
|
476
476
|
msgstr ""
|
|
477
477
|
|
|
478
|
-
#: workers/api.js:
|
|
479
|
-
#: workers/api.js:
|
|
478
|
+
#: workers/api.js:3118
|
|
479
|
+
#: workers/api.js:3233
|
|
480
480
|
msgid "Requested page not found"
|
|
481
481
|
msgstr ""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{{!-- Forced-SSO hand-off. This page exists instead of an HTTP redirect because Chrome checks a
|
|
2
|
+
form submission's redirect target against the SUBMITTING page's form-action: when a session expires
|
|
3
|
+
mid-form, the browser follows POST /admin/x -> /admin/login -> the provider as one submission, and
|
|
4
|
+
the admin policy's `form-action 'self'` kills that last hop, so the form silently does nothing. A
|
|
5
|
+
navigation this page starts is not part of that submission, so the policy no longer applies to it.
|
|
6
|
+
|
|
7
|
+
The per-route relaxation that lets the account page's Re-authenticate button redirect to a provider
|
|
8
|
+
(OAUTH_REDIRECT_FORM_DIRECTIVES) cannot help here: the policy being enforced belongs to whichever
|
|
9
|
+
admin page held the form, which is any of them.
|
|
10
|
+
|
|
11
|
+
location.replace() rather than a meta refresh: it leaves no history entry, so Back does not land
|
|
12
|
+
here and bounce the user straight out again, which is how the HTTP redirect behaved. The link is
|
|
13
|
+
what a browser that did not run the script gets. --}}
|
|
14
|
+
<h1 class="text-base-content mb-2 text-xl font-semibold">Signing in…</h1>
|
|
15
|
+
|
|
16
|
+
<p class="text-base-content/60 mb-6 text-sm">Taking you to {{providers.oidc.name}} to sign in.</p>
|
|
17
|
+
|
|
18
|
+
{{> ui/btn label="Continue" href=ssoRedirectUrl id="sso-continue" icon="icon-[tabler--login-2]" class="btn-block"}}
|
|
19
|
+
|
|
20
|
+
<script nonce="{{cspNonce}}">
|
|
21
|
+
window.location.replace(document.getElementById('sso-continue').href);
|
|
22
|
+
</script>
|
|
@@ -136,7 +136,6 @@
|
|
|
136
136
|
|
|
137
137
|
</form>
|
|
138
138
|
|
|
139
|
-
{{> tls_security_modal}}
|
|
140
139
|
|
|
141
140
|
<input type="hidden" id="availableAddresses" value="{{availableAddresses}}">
|
|
142
141
|
|
|
@@ -185,7 +184,5 @@ $client = $cm->make([
|
|
|
185
184
|
]);`}
|
|
186
185
|
}
|
|
187
186
|
});
|
|
188
|
-
|
|
189
|
-
{{> tls_security_js field="imapProxyServerTLSEnabled"}}
|
|
190
187
|
});
|
|
191
188
|
</script>
|
package/views/config/smtp.hbs
CHANGED
|
@@ -140,7 +140,6 @@
|
|
|
140
140
|
|
|
141
141
|
</form>
|
|
142
142
|
|
|
143
|
-
{{> tls_security_modal}}
|
|
144
143
|
|
|
145
144
|
<input type="hidden" id="availableAddresses" value="{{availableAddresses}}">
|
|
146
145
|
|
|
@@ -214,7 +213,5 @@ $mail->addCustomHeader('X-EE-Account', 'USERNAME');
|
|
|
214
213
|
`}
|
|
215
214
|
}
|
|
216
215
|
});
|
|
217
|
-
|
|
218
|
-
{{> tls_security_js field="smtpServerTLSEnabled"}}
|
|
219
216
|
});
|
|
220
217
|
</script>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{{> ui/page-header title="Upload a certificate" icon="icon-[tabler--upload]" class="mb-1"}}
|
|
2
|
+
|
|
3
|
+
{{> ui/breadcrumb parentHref="/admin/config/tls" parentLabel="TLS Certificates" current="Upload a certificate" class="mb-6"}}
|
|
4
|
+
|
|
5
|
+
<p class="mb-6">An uploaded certificate is served for every name it covers, ahead of anything EmailEngine obtains on its
|
|
6
|
+
own. It is never renewed automatically, so replace it here before it expires.</p>
|
|
7
|
+
|
|
8
|
+
{{#if manual}}
|
|
9
|
+
{{#> ui/alert-banner variant="info" icon="icon-[tabler--info-circle]"}}
|
|
10
|
+
<div>A certificate for <span class="font-mono">{{manual.subject}}</span> is installed and valid until <span
|
|
11
|
+
class="local-date-time" data-time="{{manual.validToIso}}">{{manual.validToIso}}</span>. Installing another one
|
|
12
|
+
replaces it.</div>
|
|
13
|
+
{{/ui/alert-banner}}
|
|
14
|
+
{{/if}}
|
|
15
|
+
|
|
16
|
+
{{!-- The "Choose file" buttons and drag-and-drop onto a field are wired by static/js/app.js
|
|
17
|
+
(.file-picker-btn with data-file-target, and .droptxt), so this page carries no script. --}}
|
|
18
|
+
<form method="post" action="/admin/config/tls/upload">
|
|
19
|
+
{{!-- no id: the layout already renders the #crumb element the scripts read --}}
|
|
20
|
+
<input type="hidden" name="crumb" value="{{crumb}}" />
|
|
21
|
+
|
|
22
|
+
<div class="card bg-base-100 shadow-md mb-6">
|
|
23
|
+
<div class="card-header">
|
|
24
|
+
<h6 class="card-title text-primary">Certificate and key</h6>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="card-body space-y-4">
|
|
28
|
+
<div>
|
|
29
|
+
{{#> ui/form-field id="uploadCert" label="Certificate"}}
|
|
30
|
+
<div class="flex items-start gap-2">
|
|
31
|
+
<textarea class="textarea font-mono text-xs grow droptxt" id="uploadCert" name="cert" rows="6" required
|
|
32
|
+
spellcheck="false" placeholder="-----BEGIN CERTIFICATE-----"></textarea>
|
|
33
|
+
{{> ui/btn label="Choose file" variant="neutral" style="soft" size="sm" icon="icon-[tabler--file-import]"
|
|
34
|
+
class="file-picker-btn shrink-0" dataName="file-target" dataValue="#uploadCert" id="uploadCertFile"}}
|
|
35
|
+
</div>
|
|
36
|
+
<span class="helper-text">PEM encoded, pasted or dropped onto the field. The server certificate first;
|
|
37
|
+
intermediates may follow it here or go in the chain field below.</span>
|
|
38
|
+
{{/ui/form-field}}
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div>
|
|
42
|
+
{{#> ui/form-field id="uploadKey" label="Private key"}}
|
|
43
|
+
<div class="flex items-start gap-2">
|
|
44
|
+
<textarea class="textarea font-mono text-xs grow droptxt" id="uploadKey" name="privateKey" rows="6" required
|
|
45
|
+
spellcheck="false" placeholder="-----BEGIN PRIVATE KEY-----"></textarea>
|
|
46
|
+
{{> ui/btn label="Choose file" variant="neutral" style="soft" size="sm" icon="icon-[tabler--file-import]"
|
|
47
|
+
class="file-picker-btn shrink-0" dataName="file-target" dataValue="#uploadKey" id="uploadKeyFile"}}
|
|
48
|
+
</div>
|
|
49
|
+
<span class="helper-text">Stored encrypted with the instance secret and never shown again.</span>
|
|
50
|
+
{{/ui/form-field}}
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div>
|
|
54
|
+
{{#> ui/form-field id="uploadPassphrase" label="Key passphrase"}}
|
|
55
|
+
<input type="password" class="input" id="uploadPassphrase" name="passphrase" autocomplete="new-password"
|
|
56
|
+
data-lpignore="true" />
|
|
57
|
+
<span class="helper-text">Only if the private key is encrypted. It is used to read the key and is not
|
|
58
|
+
stored.</span>
|
|
59
|
+
{{/ui/form-field}}
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div>
|
|
63
|
+
{{#> ui/form-field id="uploadCa" label="Chain"}}
|
|
64
|
+
<div class="flex items-start gap-2">
|
|
65
|
+
<textarea class="textarea font-mono text-xs grow droptxt" id="uploadCa" name="ca" rows="4" spellcheck="false"
|
|
66
|
+
placeholder="-----BEGIN CERTIFICATE-----"></textarea>
|
|
67
|
+
{{> ui/btn label="Choose file" variant="neutral" style="soft" size="sm" icon="icon-[tabler--file-import]"
|
|
68
|
+
class="file-picker-btn shrink-0" dataName="file-target" dataValue="#uploadCa" id="uploadCaFile"}}
|
|
69
|
+
</div>
|
|
70
|
+
<span class="helper-text">Optional. Intermediate certificates, if they are not already in the certificate
|
|
71
|
+
field.</span>
|
|
72
|
+
{{/ui/form-field}}
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div class="mb-6 flex flex-wrap gap-2">
|
|
78
|
+
{{> ui/btn label=(when manual "Replace certificate" "Install certificate") type="submit" icon="icon-[tabler--upload]"}}
|
|
79
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" href="/admin/config/tls"}}
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|