るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.045秒)
トップページ > クエリ:openssl[x] > クエリ:name[x] > 種類:クラス[x]

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl to_s
  5. openssl hexdigest

ライブラリ

キーワード

検索結果

OpenSSL::X509::NameError (17033.0)

OpenSSL::X509::Name 固有のエラーの場合に発生する例外です。

...OpenSSL::X509::Name 固有のエラーの場合に発生する例外です。...

OpenSSL::X509::Name (17017.0)

X.500の識別名(DN, Distinguished Name)を表わすクラス。

...X.500の識別名(DN, Distinguished Name)を表わすクラス。

eql? と hash が定義されているため、Hash のキーとして
利用できます。...

OpenSSL::X509::Request (11091.0)

X.509 の証明書署名要求(Certificate Signing Request, 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', 'JP')
name
.add_entry(...
...')
name
.add_entry('CN', 'Example Name')
csr.subject = name
# バージョンを 0 (v1.7) に
csr.version = 0
# 公開鍵を CSR に設定
csr.public_key = rsa.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))
# 署名
csr.sign(rsa, "sha1")
# PEM 形式で標準出力に出力
puts csr.to_pem...

OpenSSL::Config (11047.0)

OpenSSL の設定ファイルを表すクラスです。

...OpenSSL の設定ファイルを表すクラスです。

OpenSSL
の設定ファイルは、キーと文字列を対応付けた単純な構造をしています。
また、キーはセクションによってグループ分けされています。
どのセクションにも属さないグロー...
...もできます。

デフォルトの設定ファイルを読み込む例
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
p conf.sections # => ["req_distinguished_name", "req_attributes", "proxy_cert_ext", "policy_anything", "CA_default", ...]
p conf.get_...