Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
36aee137
Commit
36aee137
authored
Dec 20, 2018
by
Adrian
Committed by
Adrien Dorsaz
May 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact account field is optional, but was required
parent
0a683ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
acme_dns_tiny.py
acme_dns_tiny.py
+2
-2
No files found.
acme_dns_tiny.py
View file @
36aee137
...
...
@@ -128,7 +128,7 @@ def get_crt(config, log=LOGGER):
account_request
[
"termsOfServiceAgreed"
]
=
True
log
.
warning
(
"Terms of service exists and will be automatically agreed, please read them: {0}"
.
format
(
terms_service
))
account_request
[
"contact"
]
=
config
[
"acmednstiny"
].
get
(
"Contacts"
,
""
).
split
(
';'
)
if
account_request
[
"contact"
]
==
""
:
if
account_request
[
"contact"
]
==
[
""
]
:
del
account_request
[
"contact"
]
http_response
,
account_info
=
_send_signed_request
(
acme_config
[
"newAccount"
],
account_request
)
...
...
@@ -144,7 +144,7 @@ def get_crt(config, log=LOGGER):
raise
ValueError
(
"Error registering account: {0} {1}"
.
format
(
http_response
.
status_code
,
account_info
))
log
.
info
(
"Update contact information if needed."
)
if
(
set
(
account_request
[
"contact"
])
!=
set
(
account_info
[
"contact"
])):
if
(
"contact"
in
account_request
and
set
(
account_request
[
"contact"
])
!=
set
(
account_info
[
"contact"
])):
http_response
,
result
=
_send_signed_request
(
jws_header
[
"kid"
],
account_request
)
if
http_response
.
status_code
==
200
:
log
.
debug
(
" - Account updated with latest contact informations."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment