[GH-ISSUE #17] Extended Setup Process for the Google Authenticator Package #11

Closed
opened 2026-02-25 22:30:45 +03:00 by kerem · 5 comments
Owner

Originally created by @aioue on GitHub (Jun 19, 2017).
Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/17

Have modified an existing OpenVPN install and followed the install process for openvpn-otp.

How do I generate values for the opt-secrets "key" (token?), and how do I link it to Google Authenticator on my phone?

Would like to use "sha1/base32 for Google Authenticator with a simple pin".

Originally created by @aioue on GitHub (Jun 19, 2017). Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/17 Have modified an existing OpenVPN install and followed the install process for `openvpn-otp`. How do I generate values for the `opt-secrets` "key" (token?), and how do I link it to Google Authenticator on my phone? Would like to use "sha1/base32 for Google Authenticator with a simple pin".
kerem closed this issue 2026-02-25 22:30:45 +03:00
Author
Owner

@aioue commented on GitHub (Jun 19, 2017):

Solved:

  • install google-authenticator
  • run google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=17 --issuer=foocorp --label=user@hostname --secret=/root/.user.google_authenticator > /root/user.auth
  • user.auth file will contain the key for entry into opt-secrets, and the Google URL containing the image to be scanned with the Google Authenticator mobile app.

Running the same command without redirecting it will produce an QR code on the command line. I cannot work out how to capture that though. Anyone?

Would you accept a README PR containing the above?

<!-- gh-comment-id:309488112 --> @aioue commented on GitHub (Jun 19, 2017): Solved: - install `google-authenticator` - run `google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=17 --issuer=foocorp --label=user@hostname --secret=/root/.user.google_authenticator > /root/user.auth` - `user.auth` file will contain the key for entry into `opt-secrets`, and the Google URL containing the image to be scanned with the Google Authenticator mobile app. Running the same command without redirecting it will produce an QR code on the command line. I cannot work out how to capture that though. Anyone? Would you accept a README PR containing the above?
Author
Owner

@ptonewreckin commented on GitHub (Jul 4, 2017):

@aioue You should be able to capture the QR code with the Google Authenticator app. Open app, click '+', and scan barcode

<!-- gh-comment-id:312947600 --> @ptonewreckin commented on GitHub (Jul 4, 2017): @aioue You should be able to capture the QR code with the Google Authenticator app. Open app, click '+', and scan barcode
Author
Owner

@evgeny-gridasov commented on GitHub (Aug 2, 2017):

@aioue Please send me a pull request and I'll accept it

<!-- gh-comment-id:319540209 --> @evgeny-gridasov commented on GitHub (Aug 2, 2017): @aioue Please send me a pull request and I'll accept it
Author
Owner

@aioue commented on GitHub (Aug 2, 2017):

https://github.com/evgeny-gridasov/openvpn-otp/pull/19

<!-- gh-comment-id:319613900 --> @aioue commented on GitHub (Aug 2, 2017): https://github.com/evgeny-gridasov/openvpn-otp/pull/19
Author
Owner

@evgeny-gridasov commented on GitHub (Aug 11, 2017):

Done. Sorry for the delay

<!-- gh-comment-id:321727102 --> @evgeny-gridasov commented on GitHub (Aug 11, 2017): Done. Sorry for the delay
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-otp#11
No description provided.