aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-22 01:04:58 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-22 01:05:06 +0100
commited85b6a6740028ce9ce821975a534f696eabd8ed (patch)
tree9770985049635b4a5a9118cf52ad3964c4d9c719
parentfef888045bfd03c26822782411ff835c03440d58 (diff)
client: Print Terms of Service URL for 'account' command.
-rw-r--r--Changelog1
-rwxr-xr-xclient3
2 files changed, 4 insertions, 0 deletions
diff --git a/Changelog b/Changelog
index 9c606fe..a402207 100644
--- a/Changelog
+++ b/Changelog
@@ -96,6 +96,7 @@ lacme (0.7.1) upstream;
- Set the DEBUG environment variable to 0/1 instead of ""/1.
- Use File::Basename::dirname() to correctly extract the parent
directory of the socket path.
+ - client: Print Terms of Service URL for 'account' command.
-- Guilhem Moulin <guilhem@fripost.org> Wed, 09 Dec 2020 18:23:22 +0100
diff --git a/client b/client
index d7874b7..0bcf8cd 100755
--- a/client
+++ b/client
@@ -289,6 +289,9 @@ if ($COMMAND eq 'account') {
my $r = acme_resource('newAccount', %h);
# TODO: list account orders: https://github.com/letsencrypt/boulder/issues/3335
+ print STDERR "Terms of Service: $RES{meta}->{termsOfService}\n"
+ if defined $RES{meta} and defined $RES{meta}->{termsOfService};
+
if ($r->is_success()) {
$KID = $r->header('Location');
print STDERR "Key ID: $KID\n";