开发者

How to get the details about the chaining certificates of a server

开发者 https://www.devze.com 2023-03-28 14:55 出处:网络
By using the following code I am getting server certificate details. How should I get the information about the chaining certificates.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消