CrushMFT Documentation

SSL on a port, SNI#

Every listener that speaks TLS, which is HTTPS, FTP with encryption, implicit FTPS, PortForwardS and SMB over QUIC, shows clients a certificate. By default that is the server's own, set once in SSL of the Preferences. A listener can have another, and one listener can show different certificates for different host names.

The settings are on the Advanced tab of the listener, under SSL Options: "Overrides the global SSL settings in Encryption".

A certificate for this port#

The card is greyed until you press Override: the listener then has SSL settings of its own.

Setting What it is
Keystore Location, Browse the file that holds the private key and the certificate, on the server machine. "Keystores are Java JKS or PFX files. A standalone private key and certificate must be imported into a keystore first."
Keystore Password the password of the file
Key Password the password of the key in it, if it has one of its own
Test Certificate reads the keystore with the passwords and says what is in it, or what is wrong
Step 1: Generate Key, Step 2: Generate CSR, Step 3: Import Reply the three steps to a certificate from an authority, as in SSL: make a key, make the request you send in, bring in the answer

To put a key and a certificate you already have into a keystore, use the keystore utility.

Use a certificate of its own for a listener that is reached under another name than the rest of the server, such as an address for partners.

Client certificates#

Require valid client certificate: the listener lets in only clients that show a certificate the server trusts. The connection is refused before any login.

Warning

"Enabling client certificates blocks every connection, including yours, unless client certificates are already issued and installed in your browser. You will not be able to turn it back off from the admin panels." Set it on a listener of its own, never on the only web port, and keep another way in.

What the server trusts, and how certificates are matched to users, is in SSL.

SNI: several certificates on one port#

With SSL/TLS ServerNameInclusion (SNI) on, the listener looks at the host name the client asks for, before any certificate is shown, and answers with the certificate for that name. files.example.com and transfer.example.org can so share one address and one port, each with its own certificate.

There are two ways to give the listener the certificates.

One keystore with several keys#

Put all keys and certificates into the listener's one keystore, each under an alias that is the host name:

Alias in the keystore Shown for
files.example.com https://files.example.com/
transfer.example.org https://transfer.example.org/

Use this way with a DMZ server.

A keystore per name#

Keep the listener's keystore, say main.jks, and put further keystores into the same folder, named with the host name, an underscore, and the name of the listener's keystore:

File Shown for
main.jks any name without a file of its own
files.example.com_main.jks files.example.com
transfer.example.org_main.jks transfer.example.org

All of them use the passwords set for the listener.

A client that names no host, or a name without a certificate, gets the listener's own certificate.

Things to know#

  • A changed keystore file is read when the listener starts. After you replace a certificate, stop and start the listener in Status, or save the listener again.
  • Which TLS versions and ciphers are accepted is set for the whole server: SSL, Ciphers.
  • Certificates that renew themselves, from Let's Encrypt, are the business of the LetsEncrypt plugin: Plugins.
  • Old FTP clients do not send a host name. For FTP with SNI, they get the listener's own certificate.