TechRepublic published a tutorial about how to use GnuPG to safely store passwords on a Linux server.
How to safely store passwords on a Linux server
If you work on headless Linux servers, you might want to have a command-line password storage tool. Jack Wallen shows you how to use GnuPG and pass for this purpose.
How to safely store passwords on a Linux server