CrushMFT Documentation

Getting and installing certificates#

A certificate proves to browsers and FTP clients that your server is the one they asked for. A new server uses a certificate that is built into every copy of CrushMFT: it encrypts, and proves nothing, and every browser warns about it. Replace it before the server goes online.

This page is the way from "no certificate" to "the padlock is closed". The buttons it uses are described on SSL certificates and the guide.

Which way?#

You have Do
nothing yet, and the server is reachable from the internet on port 80 or 443 let the server get a free certificate by itself: the LetsEncrypt plugin. It also renews it.
nothing yet, and you buy certificates from an authority A new certificate in three steps, below
a certificate on a Windows web server (IIS) export it as a .pfx file with its private key and use that file as it is: Converting keys and certificates
a key file and a certificate file, as other web servers use them put the two into a keystore: Converting keys and certificates
a certificate that is about to expire Renewing, below

The SSL guide on the SSL tab asks the same questions and leads to the right buttons.

A new certificate in three steps#

All three are buttons on the SSL tab of Encryption.

1. Make the key#

Step 1: Generate Key makes a keystore file with a new private key in it.

Field Enter
Domain Name the name people will type: files.example.com. One name, no wildcard.
SANs all names the certificate shall be good for, separated by commas. Repeat the domain name; for a wildcard certificate, *.example.com.
Key Size 2048 or more
Validity Days longer than any certificate you will be given for it
Department, Company, City, State, CC, Email your organization. They may not be empty; the authority may check them.
Path, File name, Password where the keystore is saved, and its password

The keystore holds the private key. It is the part you must never lose and never give away. Note the password.

2. Make the request#

Step 2: Generate CSR makes, from the key, a certificate signing request: a block of text that begins with -----BEGIN CERTIFICATE REQUEST-----. Copy it into the order form of your certificate authority.

The request is of no value by itself and can be made again at any time.

3. Bring in the answer#

The authority checks that the name is yours and sends you files: your certificate, and usually one or more certificates of the authority itself, the "chain" or "bundle".

Step 3: Import Reply takes them:

  • your own certificate goes in as the reply. It fits only the key in your keystore.
  • the authority's certificates go in as trusted certificates, all of them.

The server says whether the chain is complete.

Then#

Point the server, or a single listener, at the keystore: SSL certificates and the guide or SSL on a port, SNI. Press Test Certificate, then stop and start the HTTPS listener in Status so that it loads the new certificate.

Proving the name is yours#

The authority must be sure that you control the name. It offers one or more of:

Method You do
a mail to an address of the domain click the link in it
a record in DNS add the record they name
a file on the web server, at http://files.example.com/.well-known/pki-validation/… see below

The file on the server#

  1. On the server's disk, make a folder well-known with a folder pki-validation in it, and put the authority's file there.
  2. Make a user named anonymous if there is none, and give it that well-known folder: drag it into the user's folders in the VFS editor, and rename the item to .well-known, with the dot. Download and view are enough.
  3. In WebInterface of the Preferences, make sure Ignore web anonymous is off, so that requests without a login reach that user.
  4. Open the address from another machine and check that the file is shown.
  5. When the certificate is issued, undo it: remove the folder from the user, or the user, and turn Ignore web anonymous back on if it was on.

The LetsEncrypt plugin does its own proof without any of this.

Renewing#

A certificate is renewed by a new request from the same keystore:

  1. Step 2: Generate CSR on the existing keystore.
  2. Send the request to the authority.
  3. Step 3: Import Reply with the new certificate.
  4. Stop and start the listener.

The key stays, and so does everything that depends on it. Start two weeks before the end date; an alert can remind you of a certificate that is about to expire.

Checking#

  • In a browser: the padlock, and in its details the names, the end date, and the chain up to a known authority.

  • From a command line:

    openssl s_client -connect files.example.com:443 -servername files.example.com </dev/null | openssl x509 -noout -subject -issuer -dates
    
  • A test from outside your network, with one of the public TLS checkers, shows what strangers see: the chain, the TLS versions and the ciphers. See Ciphers.

When browsers still warn#

The browser says Usually
the name does not match the name typed is not among the certificate's names; or the port still serves the old certificate: restart the listener
the issuer is unknown, on some devices only the authority's intermediate certificate is missing from the keystore: import the bundle
the certificate has expired renew; and check the clock of the server
it still shows the built-in certificate the listener has SSL settings of its own that point elsewhere: SSL on a port, SNI