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.