This page will guide you with installing the generated certificates from Cloudflare on your server. Please follow each step in order.
If you did not save both generated codes for the SSL certificate, please head back to Configure Cloudflare.
origin.pem
origin.key
If you don’t have your root password yet, you probably received a one-time root password in your email when you purchased your server/VPS.
When connected, run:
sudo passwd root
It will ask you to enter a new password and confirm it.
After you have setup all the A-records in Cloudflare, login into your server/VPS. You can use any SSH client (Termius, PuTTY, etc.).
Switch to root by running su root, then enter your password.
su root
Nano is a terminal text editor. For pasting text, use CTRL + SHIFT + V For copying text, use CTRL + SHIFT + C
CTRL + SHIFT + V
CTRL + SHIFT + C
The /etc/ folder is meant for system-wide config files. We’ll create /etc/ssl/cf and store the Cloudflare origin certificate + key there.
/etc/
/etc/ssl/cf
First, create a folder for the files:
mkdir /etc/ssl/cf
Now create the certificate file origin.pem:
sudo nano /etc/ssl/cf/origin.pem
Paste your generated certificate from Cloudflare (CTRL + SHIFT + V). Then press CTRL + X, press y, and press Enter to save.
CTRL + X
y
Create the private key file origin.key:
sudo nano /etc/ssl/cf/origin.key
Paste the private key from Cloudflare, then save again with CTRL + X, y, Enter.
Continue with installing the Pterodactyl panel.