How to get the details about the chaining certificates of a server
By using the following code I am getting server certificate details. How should I get the information about the chaining certificates.
require 'rubygems'
require 'httpclient'
client =开发者_JS百科 HTTPClient.new
response = client.get("https://digicert.com")
cert = response.peer_cert
p cert
精彩评论