summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-02-16 13:15:17 -0800
committerelijah <elijah@riseup.net>2016-02-16 13:15:17 -0800
commit4a804551fa769ef1ffaa4b8dd658737d6155c7c1 (patch)
treea9ea89f86a5dea52e30da65433e5462f416eff92 /lib/leap_cli
parentd547f9564fb8aae5e2839cfbc5f54a706398a2b0 (diff)
list the expiry time when warning about expiring certs
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/ca.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb
index 3a0786e2..1b311eee 100644
--- a/lib/leap_cli/commands/ca.rb
+++ b/lib/leap_cli/commands/ca.rb
@@ -278,7 +278,7 @@ module LeapCli; module Commands
log :error, "the commercial certificate '#{path}' has EXPIRED! " +
"You should renew it with `leap cert csr --domain #{domain}`."
elsif cert.not_after < Time.now.advance(:months => 2)
- log :warning, "the commercial certificate '#{path}' will expire soon. "+
+ log :warning, "the commercial certificate '#{path}' will expire soon (#{cert.not_after}). "+
"You should renew it with `leap cert csr --domain #{domain}`."
end
end