るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.047秒)
トップページ > クエリ:openssl[x] > クエリ:basic[x] > クエリ:verify[x]

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl hexdigest
  5. openssl to_s

ライブラリ

モジュール

キーワード

検索結果

OpenSSL::OCSP::BasicResponse#verify(certs, store, flags=0) -> bool (32137.0)

署名を検証します。

...ます。
* OpenSSL::OCSP::TRUSTOTHER
* OpenSSL::OCSP::NOSIGS
* OpenSSL::OCSP::NOVERIFY
* OpenSSL::OCSP::NOINTERN

TRUSTOTHER を有効にすると certs で指定した証明書を検証せずに信頼します。

@param certs 検証に用いる追加的な証明書(OpenSSL::X509::Certific...
...ate オブジェクトの配列)
@param store 検証に用いる証明書ストア(OpenSSL::X509::Store オブジェクト)
@param flags フラグ(整数)...

OpenSSL::OCSP (11102.0)

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

...示する
require 'openssl'
require 'net/http'
# ...
subject # 問い合わせ対象の証明書(Certificate オブジェクト)
issuer # subject の発行者の証明書(Certificate オブジェクト)
store # 信頼している証明書ストア
cid = OpenSSL::OCSP::CertificateId.new...
...res = OpenSSL::OCSP::Response.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([], st...
...ore)
puts "verify response fail"
end
rescid, status, reason, revtime, thisupd, nextupd, exts = basic_resp.status.first
STATUS2MESSAGE = {
OpenSSL
::OCSP::V_CERTSTATUS_GOOD => "OK",
OpenSSL
::OCSP::V_CERTSTATUS_REVOKED => "REVOKED",
OpenSSL
::OCSP::V_CERTSTATUS_UNKNOWN => "UNKNO...

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) -> StringIO (102.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」...
...OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_authentication => [username, password] })

: :proxy
プロクシの設定をします。
値には以下のいずれかを与えます。
//emli...
...ます。これを指定した場合は OpenSSL がデフォルトで使う
CA 証明書は使われません。

証明書のファイル名、証明書のディレクトリ名を指定できます。
詳しくは
OpenSSL
::X509::Store#add_file、
OpenSSL
::X509::Store#add_path
を参照して...

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) {|sio| ... } -> nil (102.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」...
...OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_authentication => [username, password] })

: :proxy
プロクシの設定をします。
値には以下のいずれかを与えます。
//emli...
...ます。これを指定した場合は OpenSSL がデフォルトで使う
CA 証明書は使われません。

証明書のファイル名、証明書のディレクトリ名を指定できます。
詳しくは
OpenSSL
::X509::Store#add_file、
OpenSSL
::X509::Store#add_path
を参照して...