るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.033秒)

別のキーワード

  1. attribute new
  2. attribute value
  3. element add_attribute
  4. rexml/document attribute
  5. rexml/document add_attribute

検索結果

OpenSSL::X509::Attribute.new(der) -> OpenSSL::X509::Attribute (63757.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 (63757.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::Request (151.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))
#...