るりまサーチ (Ruby 2.7.0)

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

別のキーワード

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

検索結果

OpenSSL::X509::Name.parse(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (97096.0)

文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

...文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

例:
require 'openssl'
OpenSSL
::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')

@param str パースする文字列
@param template...

OpenSSL::X509::Name.parse_openssl(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (70396.0)

文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

...文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

例:
require 'openssl'
OpenSSL
::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')

@param str パースする文字列
@param template...

OpenSSL::X509::Name.parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (61012.0)

RFC2253形式の文字列を パースして OpenSSL::X509::Name オブジェクトを返します。

...RFC2253形式の文字列を
パースして OpenSSL::X509::Name オブジェクトを返します。

@param str パースする文字列
@param template 属性型に対応するデータ型を表わすハッシュ...

OpenSSL::X509::Name#to_s(flags=nil) -> String (42367.0)

DNの文字列表現を返します。

...は通常は以下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE

*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Compan...
...y/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::COMPAT)
# => "C=JP, ST=Kanagawa, L=Yokohama, O=Example Company, OU=Lab3, CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::RFC2253)
# => "emailAddress=foobar@lab3.example.co.jp...
...Lab3,O=Example Company,L=Yokohama,ST=Kanagawa,C=JP"
n.to_s(OpenSSL::X509::Name::ONELINE)
# => "C = JP, ST = Kanagawa, L = Yokohama, O = Example Company, OU = Lab3, CN = foobar, emailAddress = foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MULTILINE)
# => "countryName =...

OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE -> Integer (42115.0)

属性値のデフォルトの ASN.1 の型です。

...属性値のデフォルトの ASN.1 の型です。

OpenSSL
::X509::Name.parse や OpenSSL::X509::Name.new で
template に指定されなかった属性はこの型であると仮定して処理されます。

OpenSSL
::ASN1::UTF8STRING を返します。...

絞り込み条件を変える

OpenSSL::X509::Name#to_a -> [[String, String, Integer]] (42097.0)

内容を配列にして返します。

...、[属性型文字列、属性値文字列、属性値の型を表す整数(OpenSSL::ASN1以下の各定数で定義されているASN1の型)] という3要素の配列です。

例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foo...

OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE -> { String => Integer } (42097.0)

属性型に対応する ASN.1の型を格納したハッシュです。

...属性型に対応する ASN.1の型を格納したハッシュです。

OpenSSL
::X509::Name.parse や OpenSSL::X509::Name.new
などでデフォルト値として使われます。

キーは属性型文字列で、ASN.1の型を表わす整数が対応します。

以下の文字列がキーで...