Sha256: f7e25093c5e913f21d9e4a53a74cbce5227e58c6208d30a33859cdad835ca191
Contents?: true
Size: 498 Bytes
Versions: 42
Compression:
Stored size: 498 Bytes
Contents
module Kontena::Cli::Certificate module Common def show_certificate(cert) puts "#{cert['id']}:" puts " subject: #{cert['subject']}" puts " valid until: #{Time.parse(cert['valid_until']).utc.strftime("%FT%TZ")}" if cert['alt_names'] && !cert['alt_names'].empty? puts " alt names:" cert['alt_names'].each do |alt_name| puts " - #{alt_name}" end end puts " auto renewable: #{cert['auto_renewable']}" end end end
Version data entries
42 entries across 42 versions & 2 rubygems