るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. tempfile create
  2. resolv create
  3. registry create
  4. win32/registry create
  5. openssl create

検索結果

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

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

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

@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値)...

OpenSSL::X509::ExtensionFactory#create_extension(obj) -> OpenSSL::X509::Extension (51805.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 (51805.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_ext_from_array(ary) -> OpenSSL::X509::Extension (51697.0)

[oid, value, critical] もしくは [oid, value] という配列から OpenSSL::X509::Extension オブジェクトを生成します。

...[oid, value, critical] もしくは [oid, value] という配列から
OpenSSL
::X509::Extension オブジェクトを生成します。

@param ary 生成する拡張領域のデータの配列
@see OpenSSL::X509::ExtensionFactory#create_ext...

OpenSSL::X509::ExtensionFactory#create_ext_from_hash(hash) -> OpenSSL::X509::Extension (51697.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_ext_from_string(str) -> OpenSSL::X509::Extension (51697.0)

文字列から OpenSSL::X509::Extension オブジェクトを生成します。

...文字列から OpenSSL::X509::Extension オブジェクトを生成します。

文字列は "oid = value" もしくは "oid = critical, value" という
形式である必要があります。

@param str 生成する拡張領域のデータの文字列
@see OpenSSL::X509::ExtensionFactory#create...

OpenSSL::X509::Request (33169.0)

X.509 の証明書署名要求(Certificate Signing Request, CSR)を表わす クラスです。

...CSR を生成する例。
require 'openssl'
# ファイルから秘密鍵を読み込む
rsa = OpenSSL::PKey::RSA.new(File.read("privkey.pem"))
# 新しい CSR オブジェクトを生成
csr = OpenSSL::X509::Request.new
# DN を生成
name = OpenSSL::X509::Name.new
name.add_entry('C...
...sa.public_key
# attribute を設定
factory = OpenSSL::X509::ExtensionFactory.new
exts = [ factory.create_ext("subjectAltName", "DNS:foo.example.com") ]
asn1exts = OpenSSL::ASN1::Set([OpenSSL::ASN1::Sequence(exts)])
csr.add_attribute(OpenSSL::X509::Attribute.new("extReq", asn1exts))
#...