Method: Tem::Cert.extract_not_after
- Defined in:
- lib/tem/_cert.rb
.extract_not_after(tag) ⇒ Object
returns a time
111 112 113 114 115 116 117 118 119 |
# File 'lib/tem/_cert.rb', line 111 def self.extract_not_after(tag) time_array = tag[8..11] offset_in_sec = 0 for i in (0..time_array.length-1) offset_in_sec = offset_in_sec << 8 offset_in_sec += time_array[i] end return Time.at(offset_in_sec) end |