From: "SHULTZ,BARRY (HP-Israel,ex1)" Date: 2002-05-24T15:38:09+09:00 Subject: Ruby/OpenSSL and error: PRNG not seeded Hello, My environment is: Ruby 1.6.7 on HP-UX 11.0 (actually 11.04) OpenSSL 0.9.6c Ruby/OpenSSL 0.1.1 When I run the script: #!/opt/ruby/bin/ruby require 'net/https' host, port, path = "myserver.mydomain.com", 443, "/" h = Net::HTTP.new(host, port) h.use_ssl = true h.get2(path){ |resp| print resp.body } I get the following error: /opt/ruby/lib/ruby/1.6/openssl.rb:93:in `__connect': SSL_connect:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded (OpenSSL::SSL::Error) from /opt/ruby/lib/ruby/1.6/openssl.rb:93:in `connect' from /opt/ruby/lib/ruby/1.6/openssl.rb:93:in `synchronize' from /opt/ruby/lib/ruby/1.6/openssl.rb:93:in `connect' from /opt/ruby/lib/ruby/1.6/net/protocols.rb:51:in `ssl_connect' from /opt/ruby/lib/ruby/1.6/net/https.rb:147:in `on_connect' from /opt/ruby/lib/ruby/1.6/net/protocol.rb:152:in `conn_socket' from /opt/ruby/lib/ruby/1.6/net/http.rb:499:in `do_start' from /opt/ruby/lib/ruby/1.6/net/protocol.rb:131:in `start' from /opt/ruby/lib/ruby/1.6/net/http.rb:667:in `request' from /opt/ruby/lib/ruby/1.6/net/http.rb:638:in `request_get' from /opt/ruby/lib/ruby/site_ruby/testhttpsclient.rb:6 How can I know which PRNG I need, or why the script can't find it, or how I can check if it is seeded correctly? Ruby and Ruby/OpenSSL compiled OK. Any help would be greatly appreciated. Regards, Barry