TCT,
Yes, I have set password for my private key.
Do you mean that to display a dialog that asks username and password, --auth-user-pass is the correct way, but to use auth-user-pass, I must not have password protected private key?
Displaying username is just aesthetics, but I need to use password with the private key.
If I need to choose, I will be ok with a dialog asking password.
300000,
Thank you for you suggestion, but I think you misunderstood my question.
I do not want to get rid of the password.
I just want to be asked once, not twice.
I also want to asked my username.
So far, my working version only asks password.
My client dialog is like this:
https://ttcshelbyville.wordpress.com/2010/02/07/free-vpn-with-openvpn/
I want to see the dialog like this:
https://www.heise.de/download/product/openvpn-mi-gui-80410
Back to TCT,
I think I need to "make the server ask the client both username and password".