るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.030秒)

別のキーワード

  1. openssl revoked
  2. revoked time
  3. revoked time=
  4. revoked serial

検索結果

OpenSSL::X509::Revoked.new -> OpenSSL::X509::Revoked (21220.0)

空の Revoked オブジェクトを生成し、返します。

...空の Revoked オブジェクトを生成し、返します。...

OpenSSL::OCSP (56.0)

OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。

...require 'openssl'
require 'net/http'
# ...
subject # 問い合わせ対象の証明書(Certificate オブジェクト)
issuer # subject の発行者の証明書(Certificate オブジェクト)
store # 信頼している証明書ストア
cid = OpenSSL::OCSP::CertificateId.new(subject,...
...req = OpenSSL::OCSP::Request.new
req.add_certid(cid)
req.add_nonce

http = Net::HTTP.new('ocsp.example.com', 80)
httpres = http.post("/", req.to_der, 'content-type' => 'application/ocsp-request')
raise "HTTP error" if !httpres.kind_of?(Net::HTTPOK)
res = OpenSSL::OCSP::Response.new(htt...
...{
OpenSSL
::OCSP::V_CERTSTATUS_GOOD => "OK",
OpenSSL
::OCSP::V_CERTSTATUS_REVOKED => "REVOKED",
OpenSSL
::OCSP::V_CERTSTATUS_UNKNOWN => "UNKNOWN",
}
puts "status: #{STATUS2MESSAGE[status]}"
puts "reason: #{reason}" if status == OpenSSL::OCSP::V_CERTSTATUS_REVOKED
puts "revoked...