CFINSPEC-95: Alias keylength to key_length

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-05-05 15:37:39 +05:30
parent 597a8d9177
commit 0cd343a3cc

View file

@ -109,6 +109,8 @@ module Inspec::Resources
@cert.public_key.n.num_bytes * 8
end
alias :keylength :key_length
def validity_in_days
(not_after - Time.now.utc) / 86400
end