evgeny-gridasov / openvpn-otp

OpenVPN OTP token support plugin
GNU General Public License v3.0
280 stars 74 forks source link

Compatible with user key files #3

Closed 1337sup3rh4x0r closed 8 years ago

1337sup3rh4x0r commented 9 years ago

I managed to install this plugin to my server but now I cannot log in while it is enabled. Could it be that otp does not work alongside with user key files?

Or maybe I am doing something wrong with the google auth key. I understand from the readme, that in the /etc/ppp/otp-secrets file the key needs to be put in base32 format. What about in the google auth app? base32 or plain? Also, does the key need to have a specific length?

evgeny-gridasov commented 9 years ago

I think when you switch it to username/password mode it stops working with .key files. base32 should go both in google authenticator and openvpn-otp The length is standard google auth key length which is 16 characters of base32 Use google-authenticator cli tool to generate them and then scan generated QR code with the mobile phone app.

1337sup3rh4x0r commented 9 years ago

Thank you for clearifying! Maybe it would help others to get startet if this was in the Readme?

maxadamo commented 8 years ago

what do you mean by "key file"? I use ca.crt + client.crt + client.key + OTP, and everything is working like a charm.