girish@cloudron.io
b1f172ed17
trim the output string
2016-03-21 08:25:10 -07:00
Girish Ramakrishnan
11513f9428
send a message for cert renewal status
2016-03-19 20:40:03 -07:00
Girish Ramakrishnan
5042741435
renew cert every 12 hours
2016-03-19 20:30:01 -07:00
Girish Ramakrishnan
8c36f3aab4
add debug for fallback case
2016-03-19 18:37:05 -07:00
Girish Ramakrishnan
ea87841e77
merge fallback cert job into renewal
...
this is becase we need to reconfigure for the case where we got a
renewed cert (but the app was switched to fallback cert at some point)
2016-03-19 13:54:52 -07:00
Girish Ramakrishnan
20629ea078
fix linter errors
2016-03-19 13:22:38 -07:00
Girish Ramakrishnan
b1b6a9ae65
reconfigure admin using configureAdmin
2016-03-19 12:54:11 -07:00
Girish Ramakrishnan
7ddbf7b652
refactor expiry check
2016-03-19 12:50:31 -07:00
Girish Ramakrishnan
3d088aa9c4
fix debug message
2016-03-19 12:31:48 -07:00
Girish Ramakrishnan
f329e0da92
fix typo
2016-03-19 12:14:23 -07:00
Girish Ramakrishnan
a58a458950
do not abbrev
2016-03-19 12:11:28 -07:00
Girish Ramakrishnan
44c5f84c56
Fix usage of isExpiringSync
2016-03-19 12:06:13 -07:00
Girish Ramakrishnan
d6b92ee301
remove Job suffix
2016-03-19 10:25:19 -07:00
Girish Ramakrishnan
5d54c9e668
check my domain for expiry and falling back
2016-03-18 23:43:56 -07:00
Girish Ramakrishnan
adaaca5ceb
switch expired certs of domains to use fallback cert
...
1) nginx won't reload when using expired certs
2) this is the only way the user can use the app now
2016-03-18 23:26:57 -07:00
Girish Ramakrishnan
4a73e1490e
Refactor code to take hours
2016-03-18 23:00:02 -07:00
Girish Ramakrishnan
f31a7a5061
use fallback certs if renewal fails
2016-03-17 12:20:02 -07:00
girish@cloudron.io
20ac040dde
cert: check expiry correctly
2016-03-14 22:50:06 -07:00
girish@cloudron.io
2b562f76ea
le: handle renewal upto 30 days in advance
2016-03-14 22:18:43 -07:00
Girish Ramakrishnan
fa4a8c2036
add debug for successful renewal
2016-03-14 15:55:51 -07:00
girish@cloudron.io
a10ed73af2
get zoneName using tldjs
2016-03-08 09:52:13 -08:00
girish@cloudron.io
7a2e73a5d6
acme: update account with owner email
...
fixes #544
2016-01-13 14:21:59 -08:00
girish@cloudron.io
5eb3c208f1
allow email to be configured
2016-01-13 12:15:27 -08:00
Johannes Zellner
5f778e61dd
Use new getIP() api in certificates.js
2016-01-05 12:23:07 +01:00
Girish Ramakrishnan
b7a85580fa
why is the linter not finding this again?
2015-12-21 16:14:30 -08:00
Girish Ramakrishnan
24cbd1a345
if i wrote a linter, these are the bugs it would catch
2015-12-19 13:48:14 -08:00
Girish Ramakrishnan
8b3e6742d5
better debugs
2015-12-19 13:47:48 -08:00
Girish Ramakrishnan
5edc3cde2a
set prod option based on provider
2015-12-17 13:17:46 -08:00
Girish Ramakrishnan
c55e1ff6b7
debug output the error
2015-12-15 00:23:57 -08:00
Girish Ramakrishnan
f46af93528
do not installAdminCertificate for upgrades
2015-12-14 23:37:52 -08:00
Girish Ramakrishnan
e5a40faf82
simply use fallback certs if LE fails
...
currently, it fails if we cannot get a cert.
This means that we need to provide some option to simply use fallback
cert. This requires UI changes that I want to avoid :-)
2015-12-14 17:13:54 -08:00
Girish Ramakrishnan
a89476c538
fix renewal check
2015-12-14 13:52:54 -08:00
Girish Ramakrishnan
f31d63aabd
implement cert auto-renewal
2015-12-14 12:40:39 -08:00
Girish Ramakrishnan
fd20246e8b
ensureCertificate: check if cert needs renewal
2015-12-14 12:38:19 -08:00
Girish Ramakrishnan
0c1ea39a02
add getApi
2015-12-14 12:28:00 -08:00
Girish Ramakrishnan
14ab85dc4f
do not pass outdir
2015-12-14 11:42:59 -08:00
Girish Ramakrishnan
0651bfc4b8
provide cert and key file in callback
2015-12-14 09:29:48 -08:00
Girish Ramakrishnan
21b94b2655
fix debug message
2015-12-14 08:52:43 -08:00
Girish Ramakrishnan
4e40c2341a
code now uses backend
2015-12-14 08:50:57 -08:00
Girish Ramakrishnan
7b40674c0d
add a backend for caas
2015-12-13 19:09:57 -08:00
Girish Ramakrishnan
d8a1e4aab0
more debug messages
2015-12-12 20:39:24 -08:00
Girish Ramakrishnan
c2a4ef5f93
maybe this gets the certificate
2015-12-12 20:30:50 -08:00
Girish Ramakrishnan
4cfd30f9e8
use tlsConfig to determine acme or not
2015-12-11 22:25:57 -08:00
Girish Ramakrishnan
8b7833e8b1
fix debug namespacing
2015-12-11 21:49:24 -08:00
Girish Ramakrishnan
a7480c3f29
implement installation of admin certificate via acme
2015-12-11 14:37:55 -08:00
Girish Ramakrishnan
95eba1db81
Add certificates.ensureCertificate which gets cert via acme
2015-12-11 14:15:44 -08:00
Girish Ramakrishnan
0b8fde7d8d
rename app.setAppCertificate
2015-12-11 14:13:29 -08:00
Girish Ramakrishnan
2f7517152a
rename certificates.initialize
2015-12-11 14:02:58 -08:00
Girish Ramakrishnan
3e2ea0e087
refactor certificate settings
2015-12-11 13:58:43 -08:00
Girish Ramakrishnan
723556d6a2
Add CertificatesError
2015-12-11 13:43:33 -08:00