0

I have imported the client config file to official OpenVPN client for Android.

The config file contains CA cert but no client cert or key. That's fine because i have auth-user-pass directive in it.

But when I try to connect, a window pops up saying:

Select Certificate

This profile doesn't include a client certificate. Continue connecting without a certificate or select one from the Android keychain?

If I choose to continue, it connects but this window appears every time I want to connect.

The same profile works fine on Windows (official OpenVPN GUI) and VPN Client Pro (unofficial client from Play Store).

Why it is looking for client certificate when the authentication method is user+pass?

Thanks.

EDIT for JW0914:

Since you are providing wrong information I did a little bit of search and found the answer:

As it is described here the key is to add "--verify-client-cert none" to the server config file.

  • Ditch that generic OpenVPN app for OpenVPN for Android, which actually allows full functionality as a client. As to your question, the certificate must be imported to the Android KeyChain in [Android] Settings (this is a security feature for Android - all certs must be imported into the KeyChain - DO NOT store unencrypted certificate keys on internal/external Android storage). If you install the OpenVPN for Android app, it'll be more clear, as it allows you to do so from within the app. – JW0914 Jan 5 at 14:27
  • I am happy with VPN Client Pro but my question remains that why I should import the certificate into Android keychain when the authentication method does not need it? – Omid Shojaee Jan 5 at 14:38
  • 1
    Your question states your using OpenVPN Connect, not VPN Client Pro. Please update question with the correct app being used. As to certificates, all OpenVPN connections require certificates as an authentication method (you can add other authentication methods on top of certificates, but certificates are always required). – JW0914 Jan 5 at 14:44
  • I have switched to VPN Client Pro because OpenVPN Connect is not working. The question is about OpenVPN Connect. As for the certificate, the OpenVPN default config says: ############################################################################### # Client certificate and key. # # A pair of client certificate and private key is required in case you want to # use the certificate authentication. I don't want to use certificate authentication. – Omid Shojaee Jan 6 at 15:23
  • I've addressed what the issue is in my prior two comments - you must import the certificate and key into the Android keychain. If you do not have a client cert and key, and this is your personal OpenVPN server, you must generate a client cert and key either via EasyRSA or openssl and have it signed via the VPN's CA/ICA.. OpenVPN is an SSL VPN and certificates are required, they are not optional, as using an OpenVPN server without certificates compromises the security of the VPN tunnel. If this is a 3rd party VPN, they've provided you with the cert and key signed by the VPN's CA/ICA – JW0914 Jan 6 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.