CrushMFT Documentation

SSL certificates and the guide#

The certificate is what the server shows to prove who it is, to browsers over HTTPS and to FTP clients over TLS. It is set on the SSL tab of the Encryption section of Preferences, together with the TLS versions the server speaks. The lower half of the tab, the ciphers, is on Ciphers.

The SSL tab

A new server uses a certificate that is built in, builtin. It encrypts, but every copy of CrushMFT has the same one, so browsers warn about it and it proves nothing. Replace it before the server goes live.

The Server Certificate card#

A certificate and its private key are kept together in one file, a keystore: a Java JKS file or a PFX (PKCS#12) file. A key and a certificate that you have as two separate files must be put into a keystore first, see The keystore utility.

Setting What it is Default
Keystore location the keystore file, on the server machine. Browse picks it. builtin
Keystore password the password of the keystore file
Key password the password of the private key in it. Usually the same.
Test Certificate opens the keystore with what is on the screen and says what is in it
Generate Key, Generate CSR, Import Reply the three steps to a new certificate, see below
SSL Guide asks a few questions and tells you which steps you need

The two passwords are stored encrypted.

A single listener can have a keystore of its own, set on that listener in IP / Servers. The one here is for every listener that has none.

Which steps do I need? The SSL guide#

SSL Guide, in the line at the top of the card, asks yes or no questions, one at a time, and ends with the steps for your case and a button that starts the first one.

The first question of the SSL guide

Your case What the guide ends with
you need a new certificate Generate Key, Generate CSR, Import Reply
you renew a certificate that CrushMFT already has Generate CSR, Import Reply: the private key is in the keystore already
the certificate is on a Windows server with IIS export it there with its private key as a PFX file, choose that file as Keystore location, and enter the export password as both passwords
the certificate is on an Apache server Apache keeps the key and the certificate as separate files: put them into one keystore with the Keystore Utility, Add Private SSL for the key and its certificate and Add Public SSL for each intermediate certificate, then choose that keystore here

A new certificate in three steps#

1. Generate Key#

Makes a new keystore with a private key for this server, and a certificate that is signed by nobody yet.

The Generate Keystore dialog

Field What it is Default
Keystore Algorithm RSA RSA
Keys Size 1024, 2048 or 4096 bits. Do not go below 2048. 2048
Sig Algorithm SHA1withRSA, SHA256withRSA, SHA384withRSA or SHA512withRSA SHA256withRSA
Validity Days how long the unsigned certificate is valid. The signed one will have the time your certificate authority gives it. 365
Domain Name the name people reach the server under, such as files.example.com. A wildcard such as *.example.com is accepted.
SANs further names the certificate is for, separated by commas. Leave it empty when there are none. Many authorities want the domain name here too. empty
Department, Company, City, State Name, Country, Email who the certificate is for. Country is the two-letter code.
Path the folder on the server machine to write the keystore to
File Name the name of the keystore file the domain name with .jks
Password, Confirm Password the password for the new keystore and its key

Generate writes the file and fills in Keystore location and the two passwords on the tab. Press Save to start using it: until the signed certificate is imported, the server shows the unsigned one, which browsers warn about just as they do about the built-in one.

2. Generate CSR#

Makes the request you send to your certificate authority. It asks for the keystore and its password, filled in from the tab.

The Generate Certificate Signing Request dialog

Generate CSR shows the request, a block of text that starts with -----BEGIN CERTIFICATE REQUEST-----. Copy puts it on the clipboard, Export CSR saves it as a file. Send it to the authority; the private key never leaves the keystore.

3. Import Reply#

Puts the signed certificate that the authority sends back into the keystore, in the place of the unsigned one.

The Import Certificate Authority Reply dialog

Field What it is
Keystore Path, Keystore Password the keystore the request was made from
Certificate Reply the file with the signed certificate, on the server machine
Trusted Certificates the files with the authority's intermediate and root certificates, when it sent them separately. Several are separated by a semicolon.

Then Test Certificate, and Save.

Testing a certificate#

Test Certificate opens the keystore with the location and passwords as they are on the screen, saved or not.

The answer of a test that worked

"Success! Keystore loaded and private key exists." is followed by each entry of the keystore: its name, whether it has a private key, and when it expires. Show details lists everything about each: who issued it, the names it is for, the algorithm, the serial number.

The details of a certificate

A wrong password, a wrong path or a keystore without a private key is answered with the error. A keystore without a private key cannot be a server certificate.

Advanced Options#

Setting What it does Default
TLS versions the TLS versions the server accepts from those who connect, separated by commas TLSv1.2,TLSv1.3
TLS versions (client) the TLS versions the server uses when it connects to other servers itself TLSv1.2,TLSv1.3
Require valid client certificate. every client must show a certificate of its own that the server trusts, on every TLS listener. Leave it off unless all your clients have one; it can also be set on a single listener. off

Add TLSv1.1 or TLSv1 only for an old client that cannot do better, and take it out again when that client is gone.

After a change#

A new keystore, new passwords and new TLS versions are used after Save. Check from outside with a browser, or with:

openssl s_client -connect files.example.com:443 -servername files.example.com

It shows the certificate the server presents and the TLS version that was agreed.