From 4a804551fa769ef1ffaa4b8dd658737d6155c7c1 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 16 Feb 2016 13:15:17 -0800 Subject: list the expiry time when warning about expiring certs --- lib/leap_cli/commands/ca.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/leap_cli/commands') 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 -- cgit v1.2.3