Tunnel DietPi through OpenVPN

Is it possible to configure openvpn client to read username and password via environment variables?