diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sample/webrick/httpsd.rb | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -4,6 +4,9 @@ Mon Mar 7 21:29:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> restore @token if accept failure. suggested by Dominique Brezinski. [ruby-core:04518] + * sample/webrick/httpsd.rb: fix typo in comment. suggested by + Kazuhiko Shiozaki. + Mon Mar 7 21:01:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (rb_require_safe): get actual path string under safe level diff --git a/sample/webrick/httpsd.rb b/sample/webrick/httpsd.rb index 9d82ef36cf..a120782c3c 100644 --- a/sample/webrick/httpsd.rb +++ b/sample/webrick/httpsd.rb @@ -11,8 +11,8 @@ httpd = WEBrick::HTTPServer.new( :SSLEnable => true, # Specify key pair and server certificate. - # :SSLPrivateKey => OpenSSL::PKey::RSA.new("server.key"), - # :SSLCertificate => OpenSSL::X509::Certificate.new("server.crt"), + # :SSLPrivateKey => OpenSSL::PKey::RSA.new(File.read("server.key")), + # :SSLCertificate => OpenSSL::X509::Certificate.new(File.read("server.crt")), # specify the following SSL options if you want to use auto # generated self-signed certificate. |