Class: Ftpd::TlsServer

Inherits:
Server
  • Object
show all
Defined in:
lib/ftpd/tls_server.rb

Direct Known Subclasses

FtpServer

Instance Attribute Summary collapse

Attributes inherited from Server

#interface, #port

Instance Method Summary collapse

Methods inherited from Server

#bound_port, #start, #stop

Constructor Details

#initializeTlsServer

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_pathObject

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

#tlsObject

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