Unverified Commit 2febdfc3 authored by Simon Wydooghe's avatar Simon Wydooghe
Browse files

Fix: allow removal of email address as contact

It seems the current code doesn't allow for removing the email address
from the contact field. This fixes that. This only removes the email
address if an explicit empty email address is specified on the command
line or in the account.conf file. If it is left unspecified on the
command line it still just uses whatever was configured in the
account.conf.
parent dbf659c5
...@@ -3512,6 +3512,8 @@ updateaccount() { ...@@ -3512,6 +3512,8 @@ updateaccount() {
if [ "$ACME_VERSION" = "2" ]; then if [ "$ACME_VERSION" = "2" ]; then
if [ "$ACCOUNT_EMAIL" ]; then if [ "$ACCOUNT_EMAIL" ]; then
updjson='{"contact": ["mailto:'$ACCOUNT_EMAIL'"]}' updjson='{"contact": ["mailto:'$ACCOUNT_EMAIL'"]}'
else
updjson='{"contact": []}'
fi fi
else else
# ACMEv1: Updates happen the same way a registration is done. # ACMEv1: Updates happen the same way a registration is done.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment