diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-30 23:26:53 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-30 23:26:53 +0000 |
commit | d61f475bb10ae5c54d0e4cc2a0840eb6edb0ecfd (patch) | |
tree | 8fccb0920a23ec01873f3e4672ab526e500041d2 /lib | |
parent | be2f3c58e693a6e10693153ef2422b0235661e3e (diff) | |
download | ruby-d61f475bb10ae5c54d0e4cc2a0840eb6edb0ecfd.tar.gz |
* lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert):
merged r28784 from ruby_1_8: 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/trunk@28803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/ssl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb index ff73ad1b8b..b3cc7aaf01 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 |