るりまサーチ

最速Rubyリファレンスマニュアル検索!
564件ヒット [201-300件を表示] (0.022秒)
トップページ > クエリ:to_der[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

検索結果

<< < 1 2 3 4 5 ... > >>

OpenSSL::X509::Name#to_der -> String (18101.0)

DER 形式のバイト列を返します。

DER 形式のバイト列を返します。

OpenSSL::X509::Request#to_der -> String (18101.0)

DER 形式の文字列に変換して返します。

DER 形式の文字列に変換して返します。

@raise OpenSSL::X509::RequestError 変換に失敗した場合に発生します

OpenSSL::ASN1 (72.0)

ASN.1(Abstract Syntax Notation One) のデータを取り扱うためのモジュールです。

...false, 3, :IMPLICIT, :APPLICATION)

# to_der でエンコード
x.to_der # => "\f\x06foobar"
y.to_der # => "0\x06\x01\x01\xFF\x02\x01\xF4"
z.to_der # => "b\x03\x01\x01\x00"
z2.to_der # => "b\x03\x01\x01\x00" これは z.to_der と同じ
u.to_der # => "C\x01\x00"
# エンコード...
...した文字列をデコード
OpenSSL::ASN1.decode(x.to_der)
# => #<OpenSSL::ASN1::UTF8String:0x000000027cc700 @tag=12, @value="foobar", @tagging=nil, @tag_class=:UNIVERSAL>
OpenSSL::ASN1.decode(y.to_der)
# => #<OpenSSL::ASN1::Sequence:0x000000027c47d0 @tag=16, @value=[#<OpenSSL::ASN1::Bool...
...IVERSAL>
OpenSSL::ASN1.decode(z.to_der)
# => #<OpenSSL::ASN1::ASN1Data:0x000000027bc918 @tag=2, @value=[#<OpenSSL::ASN1::Boolean:0x000000027bc968 @tag=1, @value=false, @tagging=nil, @tag_class=:UNIVERSAL>], @tag_class=:APPLICATION>
OpenSSL::ASN1.decode(u.to_der)
# => #<OpenSSL::ASN1::ASN1Dat...

ruby 1.8.2 feature (18.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...警告を出力するようになりました。 ((<ruby-dev:22627>))

=== 2004-01-08
: OpenSSL::PKey::DH#to_der [lib] [new]
: OpenSSL::PKey::DSA#to_der [lib] [new]
: OpenSSL::PKey::RSA#to_der [lib] [new]


=== 2003-12-31
: ARGF.each_byte [ruby] [compat]
nil ではなく ARGF を返すようにな...

OpenSSL::X509::Attribute.new(der) -> OpenSSL::X509::Attribute (12.0)

attribute オブジェクトを生成します。

...を DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換してから
それを attribute オブジェクトに変換します。

引数が2個の場合は、それぞ...
...value には
OpenSSL::ASN1::ASN1Data のインスタンスを渡さなければなりません。

@param der DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X...

絞り込み条件を変える

OpenSSL::X509::Attribute.new(oid, value) -> OpenSSL::X509::Attribute (12.0)

attribute オブジェクトを生成します。

...を DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換してから
それを attribute オブジェクトに変換します。

引数が2個の場合は、それぞ...
...value には
OpenSSL::ASN1::ASN1Data のインスタンスを渡さなければなりません。

@param der DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X...

NEWS for Ruby 2.0.0 (6.0)

NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...* Consistently raise an error when trying to encode nil values. All instances
of OpenSSL::ASN1::Primitive now raise TypeError when calling to_der on an
instance whose value is nil. All instances of OpenSSL::ASN1::Constructive
raise NoMethodError in the same case. Constructing su...

OpenSSL::ASN1.#decode(der) -> OpenSSL::ASN1::ASN1Data (6.0)

DER 表現の文字列を解析し、そこにエンコードされている ASN.1 の値を OpenSSL::ASN1::ASN1Data のサブクラスのインスタンスとして返します。

...uby -e '
require "openssl"
require "pp"
pem = File.read(ARGV[0])
cert = OpenSSL::X509::Certificate.new(pem)
pp OpenSSL::ASN1.decode(cert.to_der)
' mycert.pem
#<OpenSSL::ASN1::Sequence:0x814e9fc
@tag=16,
@tag_class=:UNIVERSAL,
@tagging=nil,
@value=
[#<OpenSSL::ASN1::Sequ...

OpenSSL::OCSP (6.0)

OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。

...OpenSSL::OCSP::Request.new
req.add_certid(cid)
req.add_nonce

http = Net::HTTP.new('ocsp.example.com', 80)
httpres = http.post("/", req.to_der, 'content-type' => 'application/ocsp-request')
raise "HTTP error" if !httpres.kind_of?(Net::HTTPOK)
res = OpenSSL::OCSP::Response.new(httpres....
<< < 1 2 3 4 5 ... > >>