# SSL Not Working

**URL:** <https://www.ruby-forum.com/t/ssl-not-working/217855>\
**Category:** NGINX\
**Created:** [March 14, 2012, 8:52pm UTC](https://www.ruby-forum.com/t/ssl-not-working/217855 "2012-03-14T20:52:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 14, 2012, 8:52pm UTC](https://www.ruby-forum.com/t/ssl-not-working/217855/1 "2012-03-14T20:52:21Z")

</div>

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;
}

```

}

---

<div class="post-metadata">

**Author:** ![PARMARS\_MINESH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bcef8e/32.png) [@PARMARS\_MINESH](https://www.ruby-forum.com/u/PARMARS_MINESH)\
**Post date:** [March 15, 2012, 2:22am UTC](https://www.ruby-forum.com/t/ssl-not-working/217855/2 "2012-03-15T02:22:19Z")

</div>

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:

> **[Direct Access to the Team Behind the OpenSSL Library · Support Plans](https://openssl-corporation.org/support/index.html)**
>
> OpenSSL support plans, premium, priority, and standard tiers with SLAs, direct access to maintainers, and long-term support.

Maxim D.
