るりまサーチ

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

別のキーワード

  1. openssl public_key
  2. openssl public_key=
  3. _builtin each_key
  4. dbm key
  5. _builtin key?

キーワード

検索結果

openssl (13.0)

OpenSSL(https://www.openssl.org/) を Ruby から扱うためのライブラリです。

...名証明書の作成の例です。自分の秘密鍵で自分の公開鍵に署名しているから自己署名です。

require 'openssl'

key =
OpenSSL::PKey::RSA.new(1024)
digest = OpenSSL::Digest::SHA1.new()

issu = sub = OpenSSL::X509::Name.new()
sub.add_entry('C', 'JP')
sub...
...ub.add_entry('CN', 'Ruby Taro')

cer = OpenSSL::X509::Certificate.new()
cer.not_before = Time.at(0)
cer.not_after = Time.at(0)
cer.public_key = key # <= 署名する対象となる公開鍵
cer.serial = 1
cer.issuer = issu
cer.subject = sub

cer.sign(key, digest) # <= 署名す...

rubygems/security (13.0)

このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。

...。あなたの gemspec ファイルを開いて
以下の内容を追加してください。

# signing key and certificate chain
s.signing_key = '/mnt/floppy/gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']

("/mnt/floppy" はあなた自身の秘密鍵の置いてあるパ...
..." は彼の gemspec を以下のように変更する必要があります。

# signing key (still kept in an undisclosed location!)
s.signing_key = '/mnt/floppy/alf-private_key.pem'

# certificate chain (includes the issuer certificate now too)
s.cert_chain = ['/home/alf/doc/seattlerb-p...