564件ヒット
[501-564件を表示]
(0.037秒)
ライブラリ
- openssl (540)
クラス
-
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: Netscape :: SPKI (12) -
OpenSSL
:: OCSP :: Request (12) -
OpenSSL
:: OCSP :: Response (12) -
OpenSSL
:: PKCS12 (12) -
OpenSSL
:: PKCS7 (12) -
OpenSSL
:: PKey :: DH (48) -
OpenSSL
:: PKey :: DSA (60) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: PKey :: EC :: Group (12) -
OpenSSL
:: PKey :: RSA (72) -
OpenSSL
:: SSL :: Session (12) -
OpenSSL
:: X509 :: Attribute (36) -
OpenSSL
:: X509 :: CRL (36) -
OpenSSL
:: X509 :: Certificate (36) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (48) -
OpenSSL
:: X509 :: Request (36)
モジュール
-
OpenSSL
:: ASN1 (12)
キーワード
- ASN1 (12)
-
NEWS for Ruby 2
. 0 . 0 (12) - OCSP (12)
- RSA (12)
- decode (12)
- new (276)
-
ruby 1
. 8 . 2 feature (12)
検索結果
先頭5件
-
OpenSSL
:: X509 :: Certificate . new -> OpenSSL :: X509 :: Certificate (11120.0) -
証明書オブジェクトを生成します。
...イルの中身から
証明書オブジェクトを生成します。
obj が OpenSSL::X509::Certificate オブジェクトである場合には、
そのオブジェクトの内容を複製します。
obj が to_der メソッドを持つ場合には、そのメソッドによって
DER 形式......のバイト列に変換し、証明書オブジェクトを生成します。
@param obj 証明書のデータ
@raise OpenSSL::X509::CertificateError 証明書のフォーマットが不正であるなど、読み込みに失敗した場合に発生します... -
OpenSSL
:: X509 :: Certificate . new(obj) -> OpenSSL :: X509 :: Certificate (11120.0) -
証明書オブジェクトを生成します。
...イルの中身から
証明書オブジェクトを生成します。
obj が OpenSSL::X509::Certificate オブジェクトである場合には、
そのオブジェクトの内容を複製します。
obj が to_der メソッドを持つ場合には、そのメソッドによって
DER 形式......のバイト列に変換し、証明書オブジェクトを生成します。
@param obj 証明書のデータ
@raise OpenSSL::X509::CertificateError 証明書のフォーマットが不正であるなど、読み込みに失敗した場合に発生します... -
OpenSSL
:: PKey :: RSA (11078.0) -
RSA 暗号鍵のクラスです。
...このクラスで利用するのは、
OpenSSL::PKey::RSA.generate, OpenSSL::PKey::RSA.new,
OpenSSL::PKey::RSA#public?, OpenSSL::PKey::RSA#private?,
OpenSSL::PKey::RSA#public_key, OpenSSL::PKey::RSA#to_text,
OpenSSL::PKey::RSA#to_pem, OpenSSL::PKey::RSA#to_der
のいずれかでしょう。これ......ついてよく理解し、必要な場合のみにすべきです。
例:
require 'openssl'
# initialize random seed
OpenSSL::Random.seed(File.read("/dev/random", 16))
# 鍵対を生成
rsa = OpenSSL::PKey::RSA.generate(2048)
# 秘密鍵をAES256で暗号化して private_key.pem に......PEM 形式で保存
passphrase = "!secret passphrase!"
File.open("private_key.pem", "w") do |f|
f.write(rsa.export(OpenSSL::Cipher.new("aes256"), passphrase))
end
# 公開鍵をpublic_key.pemに保存
public_key = rsa.public_key
File.open("public_key.pem", "w") do |f|
f.write(pu... -
OpenSSL
:: OCSP (11066.0) -
OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。
...示する
require 'openssl'
require 'net/http'
# ...
subject # 問い合わせ対象の証明書(Certificate オブジェクト)
issuer # subject の発行者の証明書(Certificate オブジェクト)
store # 信頼している証明書ストア
cid = OpenSSL::OCSP::CertificateId.new......issuer)
req = 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::Respon......se.new(httpres.body)
puts "Response status: #{res.status_string}"
exit if res.status != OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
basic_resp = res.basic
raise "nonce error" unless [-1, 1].include?(req.check_nonce(basic_resp))
unless basic_resp.verify([], store)
puts "verify respons... -
NEWS for Ruby 2
. 0 . 0 (144.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...tSpace.#reachable_objects_from
* openssl
* 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 No......itted.
* TLS 1.1 & 1.2 support by setting OpenSSL::SSL::SSLContext#ssl_version to
:TLSv1_2, :TLSv1_2_server, :TLSv1_2_client or :TLSv1_1, :TLSv1_1_server
:TLSv1_1_client. The version being effectively used can be queried
with OpenSSL::SSL#ssl_version. Furthermore, it is also po......ssible to
blacklist the new TLS versions with OpenSSL::SSL:OP_NO_TLSv1_1 and
OpenSSL::SSL::OP_NO_TLSv1_2.
* Added OpenSSL::SSL::SSLContext#renegotiation_cb. A user-defined callback
may be set which gets called whenever a new handshake is negotiated. This
also allows to pr... -
ruby 1
. 8 . 2 feature (132.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...が修正されました。
=== 2004-12-19
: OpenSSL::X509::Store#time= [lib] [new]
: OpenSSL::X509::StoreContext#time= [lib] [new]
追加。
: OpenSSL::X509::Name::RFC2253DN [lib] [new]
module for RFC2253 DN format.
: OpenSSL::X509::Name.parse_rfc2253 [lib] [new]
new......2004-12-16 に削除されました。
((<ruby-dev:25206>))?
: OpenSSL::PKey::RSA.public_encrypt [lib] [compat]
: OpenSSL::PKey::RSA.public_decrypt [lib] [compat]
: OpenSSL::PKey::RSA.private_encrypt [lib] [compat]
: OpenSSL::PKey::RSA.private_decrypt [lib] [compat]
パディングを......場合に警告を出力するようになりました。 ((<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 を返すよ...