mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
CFINSPEC-95: Alias keylength to key_length
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
597a8d9177
commit
0cd343a3cc
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue