るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::x509::certificate
  4. new openssl::pkey::ec::group
  5. start net::smtp

検索結果

OpenSSL::X509::Attribute (69007.0)

X.509 証明書署名要求の attribute を表すクラスです。

...X.509 証明書署名要求の attribute を表すクラスです。

OpenSSL
::X509::Request#attributes で取り出すことや、
OpenSSL
::X509::Request#add_attribute で追加することができます。...

OpenSSL::X509::Attribute.new(der) -> OpenSSL::X509::Attribute (63313.0)

attribute オブジェクトを生成します。

...e には
OpenSSL
::ASN1::ASN1Data のインスタンスを渡さなければなりません。

@param der DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509:...

OpenSSL::X509::Attribute.new(oid, value) -> OpenSSL::X509::Attribute (63313.0)

attribute オブジェクトを生成します。

...e には
OpenSSL
::ASN1::ASN1Data のインスタンスを渡さなければなりません。

@param der DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509:...

OpenSSL::X509::Attribute#oid -> String (63025.0)

attribute の Object ID(識別子)を文字列で返します。

...attribute の Object ID(識別子)を文字列で返します。

@raise OpenSSL::X509::AttributeError Object ID の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#oid=...

OpenSSL::X509::Attribute#oid=(oid) (63025.0)

attribute の Object ID(識別子)を文字列で設定します。

...attribute の Object ID(識別子)を文字列で設定します。

@param oid 設定する Object ID 文字列
@raise OpenSSL::X509::AttributeError oidが不正であった場合に発生します
@see OpenSSL::X509::Attribute#oid...

絞り込み条件を変える

OpenSSL::X509::Attribute#value -> OpenSSL::ASN1::ASN1Data (63025.0)

attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで 返します。

...attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで
返します。

@raise OpenSSL::X509::AttributeError 値の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#value=...

OpenSSL::X509::Attribute#value=(val) (63025.0)

attribute の値を設定します。

...す。

引数には OpenSSL::ASN1::ASN1Data のオブジェクトを渡さなければなりません。

@param val 設定する値の OpenSSL::ASN1::ASN1Data オブジェクト
@raise OpenSSL::X509::AttributeError val が不正であった場合に発生します
@see OpenSSL::X509::Attribute#val...

OpenSSL::X509::Attribute#to_der -> String (63007.0)

自身を DER 形式のバイト列に変換します。

...自身を DER 形式のバイト列に変換します。

@raise OpenSSL::X509::AttributeError 変換に失敗した場合に発生します...

OpenSSL::X509::AttributeError (9055.0)

OpenSSL::X509::Attribute 関連のエラーが起きた場合に 発生する例外です。

...OpenSSL::X509::Attribute 関連のエラーが起きた場合に
発生する例外です。...

OpenSSL::X509::Request#attributes -> [OpenSSL::X509::Attribute] (358.0)

CSR が保持している attribute を OpenSSL::X509::Attribute の配列で返します。

...CSR が保持している attribute を OpenSSL::X509::Attribute
の配列で返します。

attribute とは X.509 証明書署名要求 に含まれる申請者に関する
追加的な情報です。必須ではありません。X.509v3 拡張領域を
CSR に含めるときは "reqExt" とい...
...う oid の attribute を追加
します。

@see OpenSSL::X509::Request#attribute=,
OpenSSL
::X509::Request#add_attribute...

絞り込み条件を変える

OpenSSL::X509::Request#add_attribute(attr) -> OpenSSL::X509::Attribute (328.0)

新たな attribute を CSR に追加します。

...新たな attribute を CSR に追加します。

@param attr 追加する attribute(OpenSSL::X509::Attribute の
インスタンス)
@return 渡した attribute オブジェクトを返します
@see OpenSSL::X509::Request#attribute,
OpenSSL
::X509::Request#attribute=...

OpenSSL::X509::Request (25.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))
#...

OpenSSL::X509::Request#attributes=(attrs) (25.0)

CSR の attribute をクリアして新しい attribute を設定します。

...CSR の attribute をクリアして新しい attribute を設定します。


@param attrs 新たに設定する attribute(OpenSSL::X509::Attribute の
インスタンス)の配列
@see OpenSSL::X509::Request#attribute
OpenSSL
::X509::Request#add_attribute...