Johannes Zellner
48d557b242
Replace alternateEmail with fallbackEmail
2018-01-21 14:50:24 +01:00
Girish Ramakrishnan
74e79c00fc
Fix cert api selection
2018-01-11 00:05:35 -08:00
Girish Ramakrishnan
efc0a3b68d
Remove usage of config.appFqdn()
2018-01-10 13:58:05 -08:00
Girish Ramakrishnan
c56a24d4fb
Autoprovision from autoprovision.json
...
This is done so that CaaS restore code path can provision correctly
2017-11-27 22:41:32 -08:00
Girish Ramakrishnan
b6c20877ea
lint
2017-11-27 10:43:12 -08:00
Johannes Zellner
f7c7a36fc1
We reuse appFqdn() here for the webadmin
2017-11-20 20:01:50 +01:00
Johannes Zellner
07626dacb5
Ensure certificates needs to be multidomain aware
2017-11-20 20:01:50 +01:00
Johannes Zellner
bf711c6ebb
allow to set domain specific fallback certs
2017-11-20 20:01:50 +01:00
Johannes Zellner
e43e904622
Refactor all app.location usages to config.appFqdn(app)
2017-11-20 20:01:50 +01:00
Johannes Zellner
59ae1ac012
Move fallback certificate api to domains
2017-11-20 19:59:40 +01:00
Johannes Zellner
143ba831f4
Make appFqdn() multidomain aware
2017-11-20 19:59:40 +01:00
Girish Ramakrishnan
d9ab1a78d5
Make the my location customizable
...
Fixes #22
2017-10-25 23:00:43 -07:00
Johannes Zellner
d164f881ca
Bring back code for alt domain match
...
There are no actual tests for this yet. Should be added.
2017-05-11 21:55:29 +02:00
Johannes Zellner
4994a5da49
Use -checkhost openssl subcommand
2017-05-11 21:31:01 +02:00
Johannes Zellner
05fcdb0a67
Extract CN from cert with JS
...
unlike the sed script, this does not rely on the order openssl reports the subject entities
2017-05-11 15:19:02 +02:00
Johannes Zellner
23827974d8
Fix certificate validation to work with new openssl version as well
2017-05-11 14:58:29 +02:00
Girish Ramakrishnan
e3c72fa6ce
remove src/ prefix in debug tags
2017-04-23 21:53:59 -07:00
Girish Ramakrishnan
cdb5dc2c53
Remove isDev flag
...
We can pretty much test everything here on self-hosted cloudrons now
2017-04-13 11:34:03 -07:00
Girish Ramakrishnan
b604caec72
Get rid of x509 module
...
This is the last of the "native" modules. These modules take forever
to rebuild in low memory machines
2017-02-24 21:01:48 -08:00
Johannes Zellner
4217db9e18
Ensure we don't crash if domain is not a string
...
Fixes #219
2017-02-13 13:21:25 +01:00
Girish Ramakrishnan
b91674799b
Create/destroy event listeners
...
mocha loads all the tests in same process. This means that when
we start a new test, the old state still persists. For event
listeners, this means that they get multiple duplicate event handlers.
2017-02-07 10:30:52 -08:00
Girish Ramakrishnan
1262d11cb3
Prefix event enum with EVENT_
2017-01-17 23:18:08 -08:00
Girish Ramakrishnan
ebf1dc1b08
listen for cert changed events and restart mail container
...
neither haraka nor dovecot restarts on cert change
Fixes #47
2017-01-17 10:59:00 -08:00
Girish Ramakrishnan
7dd52779dc
generate cert files for mail container
...
this allows us to not track paths anymore
part of #47
2017-01-17 10:21:44 -08:00
Girish Ramakrishnan
db50382b18
check user cert and then the le cert
...
part of #47
2017-01-17 09:59:40 -08:00
Girish Ramakrishnan
32b061c768
user certs are saved with extension user.cert/key
...
part of #47
2017-01-17 09:59:30 -08:00
Girish Ramakrishnan
740e85d28c
make code a bit readable
2017-01-17 09:57:15 -08:00
Girish Ramakrishnan
b99438e550
remove unused function
2017-01-17 09:18:48 -08:00
Johannes Zellner
f2e8f325d1
Correct debug lines for cert renewal or not existing
2017-01-17 10:35:42 +01:00
Girish Ramakrishnan
da2aecc76a
Save generated fallback certs as part of the backup
...
this way we don't get a new cert across restarts
2017-01-14 13:18:54 -08:00
Johannes Zellner
5d739f012c
Never use the cloudron email account for LetsEncrypt
2017-01-10 18:14:59 +01:00
Girish Ramakrishnan
9e8f120fdd
Make ensureFallbackCertificate error without a domain
2017-01-09 10:28:28 -08:00
Girish Ramakrishnan
3b9b9a1629
ensure fallback cert exists before platform is started
2017-01-09 10:28:28 -08:00
Johannes Zellner
a243478fff
Create separate ip and my. domain nginx configs
2017-01-06 16:01:49 +01:00
Girish Ramakrishnan
0b68d1c9aa
Reconfigure admin when domain gets set
2017-01-06 10:23:10 +01:00
Girish Ramakrishnan
cc9904c8c7
Move nginx config and cert generation to box code
2017-01-06 10:23:10 +01:00
Girish Ramakrishnan
16ab523cb2
Store IP certs as part of nginx cert dir (otherwise, it will get backed up)
2017-01-06 10:23:10 +01:00
Johannes Zellner
38c542b05a
Add route to check dns and cert status
2017-01-05 20:37:26 +01:00
Johannes Zellner
801c40420c
Create setup nginx config and cert for ip setup
2017-01-05 16:02:03 +01:00
Johannes Zellner
d9865f9b0f
Allow box to startup without fqdn
2017-01-05 14:02:04 +01:00
Girish Ramakrishnan
54a388af5e
Add debug
2016-12-15 07:30:38 -08:00
Girish Ramakrishnan
de1c677e75
Simply get admin cert after waiting for dns
...
Removes some specialized code that was in installAdminCertificate.
2016-12-14 14:52:42 -08:00
Girish Ramakrishnan
d475d9bcbf
Make waitForDns provider specific
...
This will allow us to create a proper 'noop' backend that does
not wait for dns to be in sync. This is required for local/intranet
setups.
2016-12-14 14:43:20 -08:00
Girish Ramakrishnan
bf095f0698
Skip admin cert installation with fallback tls provider
2016-12-13 18:58:07 -08:00
Johannes Zellner
7d93cfaac1
Add missing return
...
Fixes #128
2016-12-06 17:26:56 +01:00
Johannes Zellner
b1be65d9ce
Add fallback certificate backend
2016-12-05 17:01:23 +01:00
Girish Ramakrishnan
eaa747fe39
do not install admin certs during test
2016-10-25 11:36:56 -07:00
Girish Ramakrishnan
cd94d8f433
Save user certs separately from automatic certs
...
Fixing the admin cert is a bit more complex since it is used in
setup script as well. Can do that in a later task.
Fixes #44
2016-09-12 01:44:16 -07:00
Girish Ramakrishnan
e0d4c1adc1
use support instead of admin
2016-07-27 11:48:03 -07:00
Girish Ramakrishnan
d4d07e27c0
send email for certificate renewal error
2016-07-26 16:37:10 -07:00