Module: OpenSSLExtensions::BN

Defined in:
lib/openssl-extensions/bn.rb

Instance Method Summary collapse

Instance Method Details

#to_hexObject

OpenSSL deals with serials in HEX format. This gives you the ability to get this hex serial if you need to work with certificate information directly with OpenSSL



9
10
11
# File 'lib/openssl-extensions/bn.rb', line 9

def to_hex
  to_s(16).upcase
end