Class: Ftpd::TlsServer
Direct Known Subclasses
Instance Attribute Summary collapse
-
#certfile_path ⇒ String
The path of the SSL certificate to use for TLS.
-
#tls ⇒ Symbol
Whether or not to do TLS, and which flavor.
Attributes inherited from Server
Instance Method Summary collapse
-
#initialize ⇒ TlsServer
constructor
Create a new TLS server.
Methods inherited from Server
#bound_port, #join, #start, #stop
Constructor Details
#initialize ⇒ TlsServer
Create a new TLS server.
35 36 37 38 |
# File 'lib/ftpd/tls_server.rb', line 35 def initialize super @tls = :off end |
Instance Attribute Details
#certfile_path ⇒ String
The path of the SSL certificate to use for TLS. Defaults to nil (no SSL certificate).
Set this before calling #start.
31 32 33 |
# File 'lib/ftpd/tls_server.rb', line 31 def certfile_path @certfile_path end |
#tls ⇒ Symbol
Whether or not to do TLS, and which flavor.
One of:
-
:off
-
:explicit
-
:implicit
Notes:
-
Defaults to :off
-
Set this before calling #start.
-
If other than :off, then #certfile_path must be set.
22 23 24 |
# File 'lib/ftpd/tls_server.rb', line 22 def tls @tls end |