problem with ssl and webrick ...

K

Karl-Heinz Wild

--Apple-Mail-1--139677948
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

I have a problem with running webrick as https server.
is this a kown problem or something i could correct in my
script.

s = HTTPServer.new(
:ServerName => SERVERNAME,
:port => 443,
:SSLEnable => true,
#:SSLVerifyClient => ::OpenSSL::SSL::VERITY_NONE,
#:SSLCertName => [ [ 'C','LI' ], ['O','servername'], ['CN','WWW'] ],
:DocumentRoot => ROOTPATH + "/htdocs" )


# ruby server-test.rb
[2004-06-20 01:49:42] INFO WEBrick 1.3.1
[2004-06-20 01:49:42] INFO ruby 1.8.1 (2004-05-02) [i386-freebsd5]
...............++++++
........................................................................
........................................................................
.....++++++
/usr/local/lib/ruby/1.8/webrick/ssl.rb:55:in `initialize': cannot
convert nil into String (TypeError)
from /usr/local/lib/ruby/1.8/webrick/ssl.rb:55:in `new'
from /usr/local/lib/ruby/1.8/webrick/ssl.rb:55:in
`create_self_signed_cert'
from /usr/local/lib/ruby/1.8/webrick/ssl.rb:106:in
`setup_ssl_context'
from /usr/local/lib/ruby/1.8/webrick/ssl.rb:90:in `listen'
from /usr/local/lib/ruby/1.8/webrick/server.rb:63:in
`initialize'
from /usr/local/lib/ruby/1.8/webrick/httpserver.rb:24:in
`initialize'
from server-test.rb:114:in `new'
from server-test.rb:114
--Apple-Mail-1--139677948--
 
E

Eric Hodel

--nVYOjVWOcH+Ezkzp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Karl-Heinz Wild ([email protected]) said:
I have a problem with running webrick as https server.
is this a kown problem or something i could correct in my
script.
=20
s =3D HTTPServer.new(
:ServerName =3D> SERVERNAME,
:port =3D> 443,
:SSLEnable =3D> true,
^^^^
This requires the next two lines to be un-commented.
#:SSLVerifyClient =3D> ::OpenSSL::SSL::VERITY_NONE,
^^^^^^^^^^^
This should be VERIFY_NONE
#:SSLCertName =3D> [ [ 'C','LI' ], ['O','servername'], ['CN','WWW'] ],
:DocumentRoot =3D> ROOTPATH + "/htdocs" )
# ruby server-test.rb
[snip]

I cannot dupe your problem, the snippet above is incomplete.

--=20
Eric Hodel - (e-mail address removed) - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04


--nVYOjVWOcH+Ezkzp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQFA1O07MypVHHlsnwQRAq3HAKDfNi1buNL+o5VH7BoyJwN6ms+csACbB2CC
VYq5Dl+S4Pos5kCWKz79idU=
=zFfO
-----END PGP SIGNATURE-----

--nVYOjVWOcH+Ezkzp--
 
K

Karl-Heinz Wild

^^^^
This requires the next two lines to be un-commented.

^^^^^^^^^^^
This should be VERIFY_NONE

So stupid. That's the fault. Thank you very much.

-
Karl-Heinz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top