SSL Not Working

Help Please…

I am create simple SSL configuration as describe in documentation but I
keep getting following error message… Can you please advise what I am
doing wrong…

-bash-3.2# nginx -v
nginx version: nginx/1.0.13

2012/03/14 19:27:23 [crit] 5650#0: *1 SSL_do_handshake() failed (SSL:
error:140B512D:SSL routines:SSL_GET_NEW_SESSION:ssl session id callback
failed) while SSL handshaking, client: 135.199.76.62, server: localhost

Here is my ngle.conf file
upstream ngleproject {
server 74.191.89.69:8080;
server 74.191.89.71:8080;
}

server {
listen 8080;
server_name localhost;

access_log  /opt/ngnix/logs/ngle.access.log  main;
error_log   /opt/ngnix/logs/ngle.error.log  debug;

location / {
     proxy_pass http://ngleproject;
}

}

server {
listen 8082;
server_name localhost;

access_log  /opt/ngnix/logs/ngle.ssl-access.log  main;
error_log   /opt/ngnix/logs/ngle.ssl-error.log  debug;

ssl on;
ssl_certificate     /etc/nginx/ssl/nginx.in.csr;
ssl_certificate_key /etc/nginx/ssl/nginx.in.key;

ssl_session_timeout  5m;
ssl_protocols  SSLv2 SSLv3 TLSv1;
ssl_ciphers  HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers   on;


location / {
    root   /opt/ngnix/docs;
    index  index.html index.htm;
}

}

Hello!

On Wed, Mar 14, 2012 at 07:42:34PM +0000, PARMAR, MINESH wrote:

Help Please…

I am create simple SSL configuration as describe in
documentation but I keep getting following error message… Can
you please advise what I am doing wrong…

-bash-3.2# nginx -v
nginx version: nginx/1.0.13

2012/03/14 19:27:23 [crit] 5650#0: *1 SSL_do_handshake() failed (SSL:
error:140B512D:SSL routines:SSL_GET_NEW_SESSION:ssl session id callback failed)
while SSL handshaking, client: 135.199.76.62, server: localhost

It looks like there is a problem with random source on your
system, make sure /dev/urandom and/or /dev/random exists and
readable.

See also OpenSSL FAQ here:

http://www.openssl.org/support/faq.html#USER1

Maxim D.