summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 07:21:52 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 07:21:52 +0000
commit85697688b4ff8dc34b7fbc1616f04c5eb06563f7 (patch)
tree8cb90a976e3cc43aecee4fd9690258a04c8ab72c /lib
parent699a20e917bebfdee75612ba1d5c244e7a395077 (diff)
Thu, 29 Jul 2010 13:46:40 +0000 nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
merge revision(s) 28784: * 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 Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@29858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/webrick/ssl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb
index 03bfdf4aa0..1d7e610adc 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