Hello All,
I noticed that the openvpn client user and pass are stored in clear text in the openvpn directory, "/var/etc/openvpn" on the firewall filesystem. The user and pass is stored in a file there named client1.up in clear text.
Is this a known issue, or expected behavior?
Thanks
Open a shell and run:
ls -ltrh /var/etc/openvpn/
Are any files world readable? They should only be accessible by root
Bart...
What would you expect how credentials should be saved if they have to be automatically provided? Even with asymmetric authentication, a client has to prove its identify. OpnSense just uses the means provided by OpenVPN in that the credentials are stored as plain text.
While one could encrypt those private credentials, there must be a way to get at the real data, such that anyone knowing how to decrypt it can also steal it. Since OpnSense is open source, this is obviously a hen-and-egg problem.