Kazuki Yamaguchi
7f0b3fb906
[ruby/openssl] sample: update obsolete API use
...
dafa851c0d
2021-03-16 19:37:06 +09:00
Kazuki Yamaguchi
e35d3623de
[ruby/openssl] sample: avoid "include OpenSSL"
...
It is not a common practice and should not be done since it causes name
clash: for example, Digest and Random are provided by other standard
libraries of Ruby.
Fixes: https://github.com/ruby/openssl/issues/419
6a6444984b
2021-03-16 19:37:06 +09:00
Kazuki Yamaguchi
10d360847b
[ruby/openssl] pkey: prefer PKey.read over PKey::RSA.new in docs
...
cf92a3ffba
2021-03-16 19:16:10 +09:00
Bart de Water
0b2c70eaa1
[ruby/openssl] Look up digest by name instead of constant
...
b28fb2f05c
2020-05-13 15:47:51 +09:00
gotoyuzo
a3bfedac36
* sample/openssl: reviewed and remove dependency on getopts.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 07:31:23 +00:00
nahi
223d1cb77b
* lib/logger.rb: trim tail space of each line. no user visible change.
...
* lib/rss/dublincore.rb: fixed class definition mismatch.
* sample/openssl/gen_csr.rb: fixed wrong usage text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-26 16:47:16 +00:00
nahi
d52c3b1e94
* sample/openssl/gen_csr.rb: follow OpenSSL::X509::Name change.
...
ASN.1 type of subject DN elements were wrong.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:30:05 +00:00
nahi
cc2343e7b7
* sample/openssl/gen_csr.rb: there (at least) is a CA which does not accept DN
...
in UTF8STRING format. it's a sample.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-05 14:55:52 +00:00
nahi
5f84c80fc5
* sample/openssl: added. Sample of standard distribution library should be
...
locate in sample/{module_name}/*.
* ext/openssl/sample/*: removed. move to sample/openssl/*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-04 10:31:29 +00:00