This repository has been archived by the owner. It is now read-only.
Browse files

Add doc note about STARTTLS

  • Loading branch information...
ry committed Mar 29, 2011
1 parent c0b461d commit 1768c721350cce16f406f13f05e886fc0b7d3d2c
Showing with 13 additions and 0 deletions.
  1. +13 −0 doc/api/tls.markdown
@@ -51,6 +51,19 @@ signed by one of the specified CAs. If `s.authorized === false` then the error
can be found in `s.authorizationError`.
+In the v0.4 branch no function exists for starting a TLS session on an
+already existing TCP connection. This is possible it just requires a bit of
+work. The technique is to use `tls.createSecurePair()` which returns two
+streams: an encrypted stream and a plaintext stream. The encrypted stream is then
+piped to the socket, the plaintext stream is what the user interacts with thereafter.
+[Here is some code that does it.](
### tls.Server
This class is a subclass of `net.Server` and has the same methods on it.

0 comments on commit 1768c72

Please sign in to comment.