Casper-RS avatar
Made by Casper-RS
0
Prerequisites
Important!

If you did not save both generated codes for the SSL certificate, please head back to Configure Cloudflare.

  • You have saved the origin.pem and the origin.key from the Cloudflare configuration.
1
Login as root
Learn how to set your root password

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.

2
Create files for the SSL certificate
Learn more about the nano command

Nano is a terminal text editor.
For pasting text, use CTRL + SHIFT + V
For copying text, use 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.


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.




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.

Next step: Install the Pterodactyl Panel

Continue with installing the Pterodactyl panel.