diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-29 13:46:40 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-29 13:46:40 +0000 |
commit | 41129b6d6976cb5bb54edaa9b1a01ce42fbd528f (patch) | |
tree | 0a64d8a231d214c44539758c1f2fd27f10540121 | |
parent | dea25537a5d94e295dcc865c4f68483de620cab7 (diff) |
* lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert): wrongly
created dummy SSL certificate with version == 3 (no such version) and
serial == 0 (must be >0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/webrick/ssl.rb | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Thu Jul 29 22:43:57 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org> + + * lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert): wrongly + created dummy SSL certificate with version == 3 (no such version) and + serial == 0 (must be >0). + Wed Jul 28 19:41:37 2010 NAKAMURA Usaku <usa@ruby-lang.org> * include/ruby/missing.h: shouldn't declare as dllimport when building diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb index 896206b483..fbada01041 100644 --- a/lib/webrick/ssl.rb +++ b/lib/webrick/ssl.rb @@ -50,8 +50,8 @@ module WEBrick end } cert = OpenSSL::X509::Certificate.new - cert.version = 3 - cert.serial = 0 + cert.version = 2 + cert.serial = 1 name = OpenSSL::X509::Name.new(cn) cert.subject = name cert.issuer = name |