11件ヒット
[1-11件を表示]
(0.028秒)
ライブラリ
- openssl (11)
検索結果
-
OpenSSL
:: X509 :: ExtensionFactory (18019.0) -
OpenSSL::X509::Extension を簡便に生成するための クラスです。
...(File.read('req.pem'))
newcert = OpenSSL::X509::Certificate.new
# 新しい ExtensionFactory オブジェクトを生成し、 CA の証明書オブジェクト
# を設定
factory = OpenSSL::X509::ExtensionFactory.new(ca_cert)
# CSR オブジェクトを設定
factory.subject_request =......張領域を生成
# この値は CSR オブジェクトの公開鍵から生成される
p factory.create_extension("subjectKeyIdentifier", "hash")
# => subjectKeyIdentifier = 99:E7:A1:.....
# authorityKeyIdentifier 拡張領域を生成
# この値は CA の証明書オブジェクト...