種類
- インスタンスメソッド (8)
- クラス (3)
- 特異メソッド (2)
クラス
キーワード
- AttributeError (1)
- Request (1)
-
add
_ attribute (1) - attributes (1)
- attributes= (1)
- new (2)
- oid (1)
- oid= (1)
-
to
_ der (1) - value (1)
- value= (1)
検索結果
先頭5件
-
OpenSSL
:: X509 :: Attribute (63073.0) -
X.509 証明書署名要求の attribute を表すクラスです。
...X.509 証明書署名要求の attribute を表すクラスです。
OpenSSL::X509::Request#attributes で取り出すことや、
OpenSSL::X509::Request#add_attribute で追加することができます。... -
OpenSSL
:: X509 :: Request # attributes -> [OpenSSL :: X509 :: Attribute] (28078.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 (28051.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 # attributes=(attrs) (27475.0) -
CSR の attribute をクリアして新しい attribute を設定します。
...CSR の attribute をクリアして新しい attribute を設定します。
@param attrs 新たに設定する attribute(OpenSSL::X509::Attribute の
インスタンス)の配列
@see OpenSSL::X509::Request#attribute
OpenSSL::X509::Request#add_attribute... -
OpenSSL
:: X509 :: AttributeError (27055.0) -
OpenSSL::X509::Attribute 関連のエラーが起きた場合に 発生する例外です。
...OpenSSL::X509::Attribute 関連のエラーが起きた場合に
発生する例外です。... -
OpenSSL
:: X509 :: Attribute . new(der) -> OpenSSL :: X509 :: Attribute (18751.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 (18751.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 # value -> OpenSSL :: ASN1 :: ASN1Data (18373.0) -
attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで 返します。
...attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで
返します。
@raise OpenSSL::X509::AttributeError 値の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#value=... -
OpenSSL
:: X509 :: Attribute # oid -> String (18073.0) -
attribute の Object ID(識別子)を文字列で返します。
...attribute の Object ID(識別子)を文字列で返します。
@raise OpenSSL::X509::AttributeError Object ID の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#oid=... -
OpenSSL
:: X509 :: Attribute # oid=(oid) (18073.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=(val) (18073.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 (18007.0) -
自身を DER 形式のバイト列に変換します。
...自身を DER 形式のバイト列に変換します。
@raise OpenSSL::X509::AttributeError 変換に失敗した場合に発生します... -
OpenSSL
:: X509 :: Request (9061.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))
#...