Commit graph

194 commits

Author SHA1 Message Date
yunohost-bot
fbdbd9e039 [CI] Format code 2021-05-24 13:49:17 +00:00
ljf (zamentur)
ea5a6d301f
[fix] Email on certificate renewing failed (#1227)
* [fix] Email on certificate renewing failed

* [enh] Use check_output instead of subprocess

* Update src/yunohost/certificate.py

Co-authored-by: Kayou <pierre.moltess@gmail.com>

* [mod] Use f-string for readability

Co-authored-by: Kayou <pierre.moltess@gmail.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-05-23 20:09:48 +02:00
yunohost-bot
b38d5eedf7 [CI] Format code 2021-05-07 18:22:04 +00:00
Alexandre Aubin
af567c6f85 python3: smtplib's sendmail miserably crashes with encoding issue if accent in mail body 2021-05-03 19:02:10 +02:00
yunohost-bot
66f2613518 [CI] Format code 2021-04-17 00:31:06 +00:00
Laurent Peuch
b33e7c16ac [mod] no space before ! in english 2021-04-13 12:37:55 +02:00
Alexandre Aubin
378cf904c8
Merge branch 'dev' into cron-legacy 2021-04-02 00:27:19 +02:00
Alexandre Aubin
6725a7f2bf
Merge pull request #1187 from YunoHost/improve-error-semantic
Improve error semantic
2021-03-23 00:34:06 +01:00
Alexandre Aubin
ab454ff62f Missing decode() for Popen output in certificate.py 2021-03-22 21:40:33 +01:00
Alexandre Aubin
01ccab5252 Add semantic of YunohostValidationError for all exceptions which are related to validating stuff 2021-03-11 01:39:52 +01:00
Alexandre Aubin
e639c8cd5a Move applist refresh cron + lets encrypt renewal cron to regen conf 2021-03-10 19:00:24 +01:00
Alexandre Aubin
717cd26927 Yo dawg i heard you like exceptions so i created an exception in your exception so you can debug while you debug 2021-02-03 03:09:32 +01:00
Laurent Peuch
97f26015c6 [fix] kill all bare exceptions 2021-02-02 14:40:29 +01:00
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
071d8c4cbe Misc fixes for cert / local CA management 2021-01-31 18:15:51 +01:00
Sébastien Mennetrier
f9478b93cd Fix let's encrypt certificat generation 2021-01-27 11:00:32 +01:00
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Alexandre Aubin
1d2b1d9601
[internally screaming] Follow-up of 116a15f9f1 ... breaking cert regen conf on some setup ... 2021-01-11 23:26:29 +01:00
Alexandre Aubin
1ac59f9877 More encode/decode fixes 2021-01-01 05:04:54 +01:00
Alexandre Aubin
8e30768598 2to3-2.7 ./src/yunohost/{,data_migrations/,utils/,tests/}*.py data/hooks/diagnosis/*.py -w -x dict -x print --nobackups --no-diffs 2020-12-30 21:53:43 +01:00
Kay0u
7780aa658f
fix staging cert url 2020-12-03 14:39:40 +01:00
Kay0u
d15ccc6c23
use organization name for LE cert 2020-12-03 14:39:20 +01:00
frju365
cc2dbaa6b1
[fix] Factorisons... 2020-12-03 12:09:20 +01:00
frju365
22c1cd8e88
[FIX] New CN for LE. 2020-12-03 11:59:33 +01:00
Alexandre Aubin
337387ccbc Make sure the account key exists when renewing certificate (in particular because the account key is not backup/restored) 2020-11-01 18:59:23 +01:00
Alexandre Aubin
c45c182980
Merge pull request #861 from YunoHost/permission_protection
Extends permissions features
2020-10-30 14:51:52 +01:00
Alexandre Aubin
46268185c5 Remove stale code 2020-10-14 04:08:34 +02:00
Laurent Peuch
7154551882 [fix] intermediate_certificate is now included in signed certificate
Fixes #1644
2020-10-14 03:50:21 +02:00
Alexandre Aubin
33e1567c54 Minor wording/typo, semantic improvements 2020-09-08 18:52:59 +02:00
Alexandre Aubin
0f2e9ab1d6 Lazy loading of smtplib to reduce memory footprint a bit 2020-09-01 17:29:24 +02:00
Alexandre Aubin
384c7bc608 Fix error / debug message when diagnosis ain't happy when renewing certs 2020-06-11 22:48:41 +02:00
Alexandre Aubin
65c87d55df Try to not have weird warnings if no diagnosis ran yet... 2020-05-14 03:56:32 +02:00
Alexandre Aubin
c8625858e2 Fetch xmpp-upload DNS record status from diagnosis directly 2020-05-09 18:01:16 +02:00
Alexandre Aubin
33caf9cf33 Cleanup, we don't really need this anymore 2020-05-08 21:50:41 +02:00
Alexandre Aubin
713d4926c9 Fix the way we check the A record for xmpp 2020-05-08 21:50:23 +02:00
Alexandre Aubin
333347dbcd Clarify the steps : first validate, then start logger, then run the actual install/renew 2020-05-08 21:48:41 +02:00
Alexandre Aubin
03de14df53 Tweak test if domain is ready for ACME challenge 2020-05-08 21:45:11 +02:00
Alexandre Aubin
ceab9bd1b3
Merge branch 'stretch-unstable' into fix-1516-separate-xmpp-vhosts 2020-04-27 18:03:34 +02:00
Alexandre Aubin
32c300e627 Reorganize import, make linter happier 2020-04-27 18:01:09 +02:00
Alexandre Aubin
c1262ab9a9 Fix acme challenge code snippet detection for this domain 2020-04-27 18:01:09 +02:00
pitchum
c42f7172f7
Do not include xmpp-upload in certificates of "child" domains
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-22 10:34:40 +02:00
pitchum
748dcfd8c5 Setup XMPP components for each domain, not only the main domain. 2020-04-06 20:43:32 +02:00
Alexandre Aubin
3a7b93d8aa Get rid of domain-specific acme-challenge snippet, use a single snippet including in every conf 2020-04-06 18:09:14 +02:00
pitchum
f52eef4bc2 [fix] Don't break the cert renew process, just warn. 2020-03-29 11:51:12 +02:00
pitchum
e59a38a88a Remove useless debug message. 2020-03-25 20:31:08 +01:00
pitchum
094cb15b0a Workaround some python loading issue. 2020-03-25 19:53:36 +01:00
pitchum
ceaacfbd97 Simplified check for subdomain inclusion in certificate. 2020-03-25 12:20:23 +01:00
pitchum
ada95f8fca http-upload only available on maindomain (for the moment). 2020-03-25 12:09:24 +01:00
pitchum
0bd717a21e Include XMPP subdomain in certificate when possible. 2020-03-22 12:17:08 +01:00
pitchum
c6e8bb5d26 Always expect subdomain xmpp-upload.domain.net.
This subdomain will be part of Letsencrypt certificate so
it MUST be defined in DNS zone otherwise certificate renewal will fail.
2020-03-22 08:35:02 +01:00