検索結果
先頭5件
- OpenSSL
:: ASN1 :: GeneralizedTime . new(value) -> OpenSSL :: ASN1 :: GeneralizedTime - OpenSSL
:: ASN1 :: GeneralizedTime . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GeneralizedTime - OpenSSL
:: ASN1 :: UTCTime . new(value) -> OpenSSL :: ASN1 :: UTCTime - OpenSSL
:: ASN1 :: UTCTime . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UTCTime - OpenSSL
:: ASN1 . # GeneralizedTime(value) -> OpenSSL :: ASN1 :: GeneralizedTime -> OpenSSL :: ASN1 :: GeneralizedTime
-
OpenSSL
:: ASN1 :: GeneralizedTime . new(value) -> OpenSSL :: ASN1 :: GeneralizedTime (63631.0) -
ASN.1 の GeneralizedTime 型の値を表現する OpenSSL::ASN1::GeneralizedTime オブジェクトを 生成します。
...ASN.1 の GeneralizedTime 型の値を表現する OpenSSL::ASN1::GeneralizedTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::GENERALIZEDTIME となります。
@param value ASN.1 値を表す Ruby... -
OpenSSL
:: ASN1 :: GeneralizedTime . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GeneralizedTime (63631.0) -
ASN.1 の GeneralizedTime 型の値を表現する OpenSSL::ASN1::GeneralizedTime オブジェクトを 生成します。
...ASN.1 の GeneralizedTime 型の値を表現する OpenSSL::ASN1::GeneralizedTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::GENERALIZEDTIME となります。
@param value ASN.1 値を表す Ruby... -
OpenSSL
:: ASN1 :: UTCTime . new(value) -> OpenSSL :: ASN1 :: UTCTime (63631.0) -
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを 生成します。
...ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::UTCTIME となります。
@param value ASN.1 値を表す Ruby のオブジェクト(T... -
OpenSSL
:: ASN1 :: UTCTime . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UTCTime (63631.0) -
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを 生成します。
...ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::UTCTIME となります。
@param value ASN.1 値を表す Ruby のオブジェクト(T... -
OpenSSL
:: ASN1 . # GeneralizedTime(value) -> OpenSSL :: ASN1 :: GeneralizedTime -> OpenSSL :: ASN1 :: GeneralizedTime (18943.0) -
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralizedTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方... -
OpenSSL
:: ASN1 . # UTCTime(value) -> OpenSSL :: ASN1 :: UTCTime -> OpenSSL :: ASN1 :: UTCTime (18943.0) -
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UTCTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も... -
OpenSSL
:: ASN1 . # GeneralizedTime(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GeneralizedTime (18643.0) -
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralizedTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方... -
OpenSSL
:: ASN1 . # UTCTime(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UTCTime (18643.0) -
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UTCTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も... -
OpenSSL
:: OCSP (97.0) -
OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。
...示する
require 'openssl'
require 'net/http'
# ...
subject # 問い合わせ対象の証明書(Certificate オブジェクト)
issuer # subject の発行者の証明書(Certificate オブジェクト)
store # 信頼している証明書ストア
cid = OpenSSL::OCSP::CertificateId.new......issuer)
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::Respon......se.new(httpres.body)
puts "Response status: #{res.status_string}"
exit if res.status != OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
basic_resp = res.basic
raise "nonce error" unless [-1, 1].include?(req.check_nonce(basic_resp))
unless basic_resp.verify([], store)
puts "verify respons...