36件ヒット
[1-36件を表示]
(0.055秒)
別のキーワード
種類
- 特異メソッド (12)
- インスタンスメソッド (12)
- 定数 (12)
ライブラリ
- openssl (36)
クラス
-
OpenSSL
:: X509 :: Name (36)
キーワード
-
parse
_ rfc2253 (12) -
to
_ s (12)
検索結果
先頭3件
-
OpenSSL
:: X509 :: Name :: RFC2253 -> Integer (18201.0) -
OpenSSL::X509::Name#to_s のフラグとして使います。
OpenSSL::X509::Name#to_s のフラグとして使います。
2253 互換方式でフォーマットされます。 -
OpenSSL
:: X509 :: Name . parse _ rfc2253(str , template=OBJECT _ TYPE _ TEMPLATE) -> OpenSSL :: X509 :: Name (6217.0) -
RFC2253形式の文字列を パースして OpenSSL::X509::Name オブジェクトを返します。
...RFC2253形式の文字列を
パースして OpenSSL::X509::Name オブジェクトを返します。
@param str パースする文字列
@param template 属性型に対応するデータ型を表わすハッシュ... -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (112.0) -
DNの文字列表現を返します。
...penSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')
n.to_s
# => "/C=JP/ST=Kanagawa/......s=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::COMPAT)
# => "C=JP, ST=Kanagawa, L=Yokohama, O=Example Company, OU=Lab3, CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::RFC2253)
# => "emailAddress=foobar@lab3.example.co.jp,CN=foobar,OU=Lab3,O=Example Co......,ST=Kanagawa,C=JP"
n.to_s(OpenSSL::X509::Name::ONELINE)
# => "C = JP, ST = Kanagawa, L = Yokohama, O = Example Company, OU = Lab3, CN = foobar, emailAddress = foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MULTILINE)
# => "countryName = JP\nstateOrProvinceName = K...