doc: fix 'dhparam' description of tls.createServer
authorsilverwind <me@silverwind.io>
Thu, 26 Feb 2015 14:36:41 +0000 (15:36 +0100)
committerShigeki Ohtsu <ohtsu@iij.ad.jp>
Thu, 26 Feb 2015 14:44:50 +0000 (23:44 +0900)
fixes #958

Fixes: https://github.com/iojs/io.js/issues/958
PR-URL: https://github.com/iojs/io.js/pull/968
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
doc/api/tls.markdown

index 910ca5e..ea9b6cd 100644 (file)
@@ -158,9 +158,10 @@ automatically set as a listener for the [secureConnection][] event.  The
 
     Defaults to `prime256v1`. Consult [RFC 4492] for more details.
 
-  - `dhparam`: DH parameter file to use for DHE key agreement. Use
-    `openssl dhparam` command to create it. If the file is invalid to
-    load, it is silently discarded.
+  - `dhparam`: A string or `Buffer` containing Diffie Hellman parameters,
+    required for Perfect Forward Secrecy. Use `openssl dhparam` to create it.
+    If omitted or invalid, it is silently discarded and DHE ciphers won't be
+    available.
 
   - `handshakeTimeout`: Abort the connection if the SSL/TLS handshake does not
     finish in this many milliseconds. The default is 120 seconds.