Class: OpenSSL::X509::Certificate

Inherits:
Object
  • Object
show all
Defined in:
lib/httpclient/util.rb

Instance Method Summary collapse

Instance Method Details

#to_textObject



39
40
41
42
# File 'lib/httpclient/util.rb', line 39

def to_text
  cf = CertificateFactory.getInstance('X.509')
  cf.generateCertificate(ByteArrayInputStream.new(self.to_der.to_java_bytes)).toString
end