# Warning: using default DH parameters

**URL:** <https://www.ruby-forum.com/t/warning-using-default-dh-parameters/55386>\
**Category:** Ruby\
**Created:** [March 20, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/warning-using-default-dh-parameters/55386 "2006-03-20T18:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3bc359/32.png) [@eliben](https://www.ruby-forum.com/u/eliben)\
**Post date:** [March 20, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/warning-using-default-dh-parameters/55386/1 "2006-03-20T18:04:00Z")

</div>

Hello all,

I’m issuing HTTP requests via SSL, and the following warning is  
reported:

c:/ruby/lib/ruby/1.8/net/http.rb:569: warning: using default DH  
parameters.

This warning comes from the following line in net/http.rb:

```
    s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)

```

What is the meaning of this warning ? I assume that SSL complains about  
the reduced cryptographic security because the parameters used for the  
Diffie Hellman key exchange are default and not set by the applocation  
?  
So how can an application set these keys to avoid the warning ?
