るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.053秒)
トップページ > 種類:インスタンスメソッド[x] > ライブラリ:openssl[x] > クエリ:openssl[x] > バージョン:2.5.0[x] > クエリ:error[x] > クラス:OpenSSL::ASN1::ObjectId[x]

別のキーワード

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

検索結果

OpenSSL::ASN1::ObjectId#oid -> String (33085.0)

オブジェクト識別子のドット区切り数値を文字列で返します。

...ブジェクト識別子のドット区切り数値を文字列で返します。

例:
require "openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.oid #=> "2.5.29.17"

@raise OpenSSL::ASN1::ASN1Error オブジェクト識別子名が未知である場合に発生します...