るりまサーチ

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

別のキーワード

  1. extensionfactory create_extension
  2. extensionfactory new
  3. extensionfactory crl
  4. extensionfactory crl=
  5. extensionfactory config

ライブラリ

キーワード

検索結果

OpenSSL::X509::ExtensionFactory (18013.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 =...

OpenSSL::X509::Extension (7.0)

X.509 v3 証明書の拡張領域のためのクラスです。

...でその配列が得られます。

このクラスのインスタンス生成は OpenSSL::ASN1::ASN1Data を
取り扱う必要があり面倒です。
OpenSSL::X509::ExtensionFactory を用いることで
インスタンスの生成を簡便に行うことができます。

=== 参照
* 5280...

OpenSSL::X509::Request (7.0)

X.509 の証明書署名要求(Certificate Signing Request, CSR)を表わす クラスです。

....7) に
csr.version = 0
# 公開鍵を CSR に設定
csr.public_key = rsa.public_key
# attribute を設定
factory = OpenSSL::X509::ExtensionFactory.new
exts = [ factory.create_ext("subjectAltName", "DNS:foo.example.com") ]
asn1exts = OpenSSL::ASN1::Set([OpenSSL::ASN1::Sequence(exts)])...