Adding a SSL certificate to your ProfitTrailer installation can increase the security but requires some linux knowledge. You will need a domain name directed at your ProfitTrailer location to complete this guide.
SSL Key Store
SSL Key Store Password
SSL Key Password
SSL Key Store Type
SSL Key Alias
We will use Certbot to generate a LetsEncrypt Certificate - it handles renewal automatically and is very simple to run. https://certbot.eff.org/lets-encrypt/ubuntubionic-other
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
sudo certbot certonly --standalone
During the process it will prompt you to enter your domain name (or subdomain name). Just use one domain or subdomain for all bots on one machine.
When it is done, you will have PEM certificates located at /etc/letsencrypt/live/YOURDOMAINNAME
Create a keystore.properties file:
Make a new file called keystore.properties in /etc/letsencrypt/live/YOURDOMAINNAME
Put this in the file, edit for your domain name:
alias=keycert
source.cert=/etc/letsencrypt/live/YOURDOMAINNAME/fullchain.pem
source.key=/etc/letsencrypt/live/YOURDOMAINNAME/privkey.pem
In the PT GUI, select your account settings > SSL.
Fill in using these values:
SSL Key Store: /etc/letsencrypt/live/YOURDOMAINNAME/keystore.properties
SSL Key Store Type: PEMCFG
SSL Key Store Password: <leave blank>
SSL Key Alias: keycert
SSL Key Password: dummy
Restart the bot.
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https" env=HTTPS