Class: Ftpd::TlsServer
Direct Known Subclasses
Instance Attribute Summary collapse
-
#certfile_path ⇒ Object
The path of the SSL certificate to use for TLS.
-
#tls ⇒ Object
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
Constructor Details
#initialize ⇒ TlsServer
Create a new TLS server.
25 26 27 28 |
# File 'lib/ftpd/tls_server.rb', line 25 def initialize super @tls = :off end |
Instance Attribute Details
#certfile_path ⇒ Object
The path of the SSL certificate to use for TLS. Changes made after #start have no effect.
21 22 23 |
# File 'lib/ftpd/tls_server.rb', line 21 def certfile_path @certfile_path end |
#tls ⇒ Object
Whether or not to do TLS, and which flavor.
One of:
-
:off
-
:explicit
-
:implicit
Defaults to :off
Changes made after #start have no effect. If TLS is enabled, then #certfile_path must be set.
16 17 18 |
# File 'lib/ftpd/tls_server.rb', line 16 def tls @tls end |