If you do not want to purchase a digital certificate from a third-party certificate authority (CA), or if you want to use digital signing immediately, you can create your own self-signed certificate.
Self-signed certificates are not recommended for production use. |
Follow the instructions to Create a TLS private key and Certificate Signing Request (CSR).
Once you have done that, you will have the following two files in the /root directory of the
File name | Description |
---|---|
emailgateway.key | Your private key. |
emailgateway.csr | Your Certificate Signing Request. |
The default cs-admin password is password.
sudo su -
Once you re-enter your cs-admin password at the password prompt, you can now enter commands with root privileges.
mkdir /tmp/CA
cd /tmp/CA
openssl genrsa -out CA.key 4096
openssl req -new -key CA.key -x509 -days 1095 -out CA.crt -sha256
This command will prompt for the following X.509 attributes of the signing certificate:
If the files are present, you have successfully created a Certificate Authority on the
You can now self-sign your TLS certificate by using the
cp /root/emailgateway.csr .
openssl x509 -req -days 365 -in emailgateway.csr -CA CA.crt -CAkey CA.key -CAcreateserial -out emailgateway.crt
You now have three TLS certificate and private key files that you can import into the
File name | Description | Directory |
---|---|---|
emailgateway.key | Your private key. | /root |
emailgateway.crt | The self-signed TLS certificate. | /tmp/CA |
CA.crt | The |
/tmp/CA |
Once you finish setting up your self-signed certificates, you can log out by typing logout twice. This returns you to the Clearswift Server Console menu, which you can exit by pressing Exit.