Skip to content

Server Configuration

This page will guide you with installing the generated certificates from Cloudflare on your server.
Please follow each step in order.

Step-by-step guide3 steps
  1. Step 0

    • You have saved the origin.pem and the origin.key from the Cloudflare configuration.

  2. Step 1

    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:

    Terminal window
    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.

  3. Step 2

    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:

    Terminal window
    mkdir /etc/ssl/cf

    Now create the certificate file origin.pem:

    Terminal window
    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:

    Terminal window
    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.