Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
bfbe2f5b
Unverified
Commit
bfbe2f5b
authored
5 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Patches
Plain Diff
Print the error as an error log and raise the same exception we got
parent
36af0940
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/acme.py
+10
-9
10 additions, 9 deletions
synapse/handlers/acme.py
with
10 additions
and
9 deletions
synapse/handlers/acme.py
+
10
−
9
View file @
bfbe2f5b
...
...
@@ -22,10 +22,17 @@ from twisted.web import server, static
from
twisted.web.resource
import
Resource
from
synapse.app
import
check_bind_error
from
synapse.config
import
ConfigError
logger
=
logging
.
getLogger
(
__name__
)
ACME_REGISTER_FAIL_ERROR
=
"""
Failed to register with the ACME provider. This is likely happening because the install
is new, and ACME v1 has been deprecated by Let
'
s Encrypt and is disabled for installs set
up after November 2019.
At the moment, Synapse doesn
'
t support ACME v2. For more info and alternative solution,
check out https://github.com/matrix-org/synapse/blob/master/docs/ACME.md#deprecation-of-acme-v1
------------------------------------------------------
"""
class
AcmeHandler
(
object
):
def
__init__
(
self
,
hs
):
...
...
@@ -76,14 +83,8 @@ class AcmeHandler(object):
try
:
yield
self
.
_issuer
.
_ensure_registered
()
except
Exception
:
raise
ConfigError
(
"
Failed to register with the ACME provider. This is likely happening
"
"
because the install is new, and ACME v1 has been deprecated by Let
'
s
"
"
Encrypt and is disabled for installs set up after November 2019. At the
"
"
moment, Synapse doesn
'
t support ACME v2. For more info and alternative
"
"
solution, check out https://github.com/matrix-org/synapse/blob/master
"
"
/docs/ACME.md#deprecation-of-acme-v1
"
)
logger
.
error
(
ACME_REGISTER_FAIL_ERROR
)
raise
@defer.inlineCallbacks
def
provision_certificate
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment