Jonathan Golder
cfa04d5da0
Allow forcing cert renewing via opt
Allow forcing renewing of certificates via cmdline opt to handle
changed domain lists
5 years ago
Jonathan Golder
2e42710925
Make certificate import more failure tolerant
If an error occurs while trying to import certificate in to webserver
configuration, the script will now set a marker file to the related
domain and tries again to import the cert in next script run.
Before those failures have been reported in log, but there was no
treatment.
[FS#136](https://fs.golderweb.de/index.php?do=details&task_id=136 )
7 years ago
Jonathan Golder
becb62ee23
Makefile: Remove unnecessary $(ETC) folder
Currently we have no configuration so we do not need a configuration
directory
8 years ago
Jonathan Golder
418377395d
Prevent useless sleep in first iteration
As the script is normaly already run at nearly random time, the sleep
is unnesseccary before we requested a letsencrypt cert. Also we do not
need to sleep if the cert is still valid long enough.
8 years ago
Jonathan Golder
0450437407
Makefile: Add $(ETC) to created dirs
To prepare for runwhen on uberspace
8 years ago
Jonathan Golder
514256f49b
Add makefile for simple installation on uberspace
The script can be installed in bin-dir via make install
Related Task:
8 years ago
Jonathan Golder
eeab2950e5
Signed commit for deploy
8 years ago
Jonathan Golder
821532cd06
Don't add cert if letsencrypt complains
It makes no sense to call uberspace-add-certificate if letsencrypt
fails
8 years ago
Jonathan Golder
8b615e7e35
Make short circuit "not outdated" less complicated
8 years ago
Jonathan Golder
adbed8b212
Improvement: inifilename not depend on domain var
Make letsencrypt loading inifiles detected in loop instead of
constructing possibly wrong path with domain var
8 years ago
Jonathan Golder
31d1958079
Bugfix: Remove C&P errors
8 years ago
Jonathan Golder
fe3d2941bf
Bugfix: Remove missplaced quotes
Remove quotes preventing bash expansion of home dir
8 years ago
Jonathan Golder
ea04c9656e
Merge branch 'autodomains'
8 years ago
Jonathan Golder
2ab1852eb8
Read domain from inifile
Read the domain from inifile property domains instead of using filename
As letsencrypt uses this value, missconfigurations should be nearly
impossible this way
8 years ago
Jonathan Golder
0bc92aa2ee
Conditionally set LECONFIGDIR
To be able to set LECONFIGDIR in env var for tests or different setups
8 years ago
Jonathan Golder
3b85863526
Fix missplaced quotes
8 years ago
Jonathan Golder
c0e5b48a1f
Add copyright information
Add file header with copyright and licence information.
Add GPLv3 licence full text.
8 years ago
Jonathan Golder
e6a0da5c00
Catch missing LECONFIGDIR
Threw error if the config dir is not already existing.
8 years ago
Jonathan Golder
46a81e2feb
Always use path to LECONFIGDIR from variable
Replace all hardcoded occurences of letsencrypt config dir path
with variable to reduce possibility of future mistakes.
8 years ago
Jonathan Golder
f909a5c983
Make script indipendent from working dir
Use absolute path to LECONFIGDIR instead of searching inifiles in
currend working dir.
Modify striping rules to match new filenames with full path.
8 years ago
Jonathan Golder
c0e3440f1d
Use random sleep again
As we now run the same part multiple times, sleep randomly in each loop
cycle. To be a bit nice to servers and letsencrypt.
8 years ago
Jonathan Golder
f989e9f9a2
Fix missing indentation
Add Missing indetation after addition of for-loop
8 years ago
Jonathan Golder
a8b11d9830
Add missing documenting comment
Improve documentation of script
8 years ago
Jonathan Golder
ea899521e7
Loop over all existing domain config files
To get all domains configured for letsencrypt we loop over all
configfiles matching cli-*.ini. Then strip out the domain.
8 years ago
Jonathan Golder
840573ffd3
Use a per domain config file
To be able to use multiple different domains/certificates in one
uberspace. Call per each domain with domain=domain.tld environment
variable set.
8 years ago
Jonathan Golder
037ce19154
Initial Version as in Uberspace Wiki
https://wiki.uberspace.de/webserver:https#automatisieren_von_let_s_encrypt
8 years ago