Logins Storage Location

Hi,

I recently did get into an discussion with my colleagues about how and where to store login information such as username, passwords and so forth for VPNs, PLC, HMI Remote Login and so on.
We did not come up with a final resolution and I was wondering if anyone does have a best practice and can share it or is there any tool out there which allows to safely store confidential login informations.

Thank you in advance for your input.