るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.019秒)
トップページ > バージョン:2.6.0[x] > クエリ:Hash[x] > ライブラリ:openssl[x] > クエリ:ExtensionFactory[x]

別のキーワード

  1. _builtin hash
  2. matrix hash
  3. _builtin to_hash
  4. dbm to_hash
  5. hash []

検索結果

OpenSSL::X509::ExtensionFactory (54061.0)

OpenSSL::X509::Extension を簡便に生成するための クラスです。

...OpenSSL::X509::Extension を簡便に生成するための
クラスです。



require 'openssl'
# ca_cert: CA の証明書オブジェクト
# req: CSR オブジェクト
# newcert: 新たに生成する証明書のオブジェクト
ca_cert = OpenSSL::X509::Certificate.new(File.read...
...('ca_cert.pem'))
req = OpenSSL::X509::Request.new(File.read('req.pem'))
newcert = OpenSSL::X509::Certificate.new
# 新しい ExtensionFactory オブジェクトを生成し、 CA の証明書オブジェクト
# を設定
factory = OpenSSL::X509::ExtensionFactory.new(ca_cert)
# CSR オ...

OpenSSL::X509::ExtensionFactory#create_ext_from_hash(hash) -> OpenSSL::X509::Extension (27649.0)

ハッシュから OpenSSL::X509::Extension オブジェクトを生成します。

...ハッシュから OpenSSL::X509::Extension オブジェクトを生成します。

渡すハッシュテーブルは
{"oid" => OID文字列, "value" => value文字列, "critical" => 真偽値 }
という内容が必要です。"critical" を省略した場合は false が
渡されるのと同...
...じになります。

@param hash 生成する拡張領域のデータのハッシュテーブル
@see OpenSSL::X509::ExtensionFactory#create_ext...

OpenSSL::X509::ExtensionFactory#create_extension(obj) -> OpenSSL::X509::Extension (9097.0)

OpenSSL::X509::Extension のインスタンスを生成して返します。

...OpenSSL::X509::Extension のインスタンスを生成して返します。

引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL
::X509::ExtensionFactory#create_ext_from_array、
OpenSSL
::X509::ExtensionFactory#create_ext_fr...
...om_hash、
OpenSSL
::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。

引数が2個以上である場合は、
OpenSSL
::X509::ExtensionFactory#create_ext が呼びだされて
オブジェクトを生成します。

@param obj...

OpenSSL::X509::ExtensionFactory#create_extension(oid, value, critical=false) -> OpenSSL::X509::Extension (9097.0)

OpenSSL::X509::Extension のインスタンスを生成して返します。

...OpenSSL::X509::Extension のインスタンスを生成して返します。

引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL
::X509::ExtensionFactory#create_ext_from_array、
OpenSSL
::X509::ExtensionFactory#create_ext_fr...
...om_hash、
OpenSSL
::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。

引数が2個以上である場合は、
OpenSSL
::X509::ExtensionFactory#create_ext が呼びだされて
オブジェクトを生成します。

@param obj...