summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-31 00:20:26 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-31 00:20:26 +0000
commit3f9070033c0a07da44fb1abda50d95329c20ce4a (patch)
treea850b41118838c372dd257befaa609ac35e4757a /sample
parent11332143ccc30edf402846575fd29e2244d40ca8 (diff)
* sample/openssl/gen_csr.rb: wrong usage string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/openssl/gen_csr.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/openssl/gen_csr.rb b/sample/openssl/gen_csr.rb
index 7c7f559..5858acd 100644
--- a/sample/openssl/gen_csr.rb
+++ b/sample/openssl/gen_csr.rb
@@ -8,7 +8,7 @@ include OpenSSL
def usage
myname = File::basename($0)
$stderr.puts <<EOS
-Usage: #{myname} name [keypair_file]
+Usage: #{myname} [--key keypair_file] name
name ... ex. /C=JP/O=RRR/OU=CA/CN=NaHi/emailAddress=nahi@example.org
EOS
exit
@@ -21,6 +21,7 @@ keyout = $OPT_keyout || "keypair.pem"
$stdout.sync = true
name_str = ARGV.shift or usage()
+p name_str
name = X509::Name.parse(name_str)
keypair = nil