Loading...


Related Products


Date Published: February 10, 2022

Private Key Storage for External Services

How-To Section

If you are connecting to an external service or are setting up SimpleSAML and need to store a private key in a persistent and secure location, it's recommended to create a directory off your home directory. In the example below, we use a directory named "private_keys", but you can change the name to best suit your needs:

Replace [SITENAME] with your application's site name.

/home/[SITENAME]/private_keys

Warning

Never add your private key to your code repository, as this can pose a security risk.

To create a directory off your home directory:

  1. SSH into your server
  2. Change directory to your home directory:
    cd /home/[SITENAME]
  3. Create the directory:
    mkdir private_keys


Once the directory is created, double check the permission  of the directory to ensure they meet your requirements using ls -lah .

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation