エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
require 'socket' require 'openssl' def get_certificate(host) certificate = nil TCPSocket.open(hos... require 'socket' require 'openssl' def get_certificate(host) certificate = nil TCPSocket.open(host, 443) do |tcp_client| ssl_client = OpenSSL::SSL::SSLSocket.new(tcp_client) ssl_client.hostname = host ssl_client.connect certificate = ssl_client.peer_cert ssl_client.close end certificate end get_certificate('qiita.com') => #<OpenSSL::X509::Certificate subject=#<OpenSSL::X509::Name CN=*.qiita.com,OU