Alternatively, just use Hashicorp vault (https://vaultproject.io)