stoken-cli

Rating: 
2.333335
Your rating: None Average: 2.3 (3 votes)

stoken - Software Token for Linux/UNIX

stoken is an open source tokencode generator compatible with RSA SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or endorsed by RSA Security.

This SailfishOS stoken version only offers the following interfaces:

  • Interactive or batched CLI: "stoken"
  • Shared library for use with external programs: "libstoken.so.1"

Basic usage

First, import a token from a raw string or an "sdtid" XML file:

$ stoken import --token http://127.0.0.1/securid/ctf?ctfData=2000123456...
$ stoken import --token com.rsa.securid.iphone://ctf?ctfData=2000123456...
$ stoken import --file mytoken.sdtid

This will prompt for an optional password, so that your seed is encrypted on disk.

Next, use the CLI to show the current tokencode:

$ stoken tokencode

If your token requires a PIN, stoken will prompt for it. You can use "stoken setpin" to cache your PIN in ~/.stokenrc. This is much less secure, but may be useful for automation.

Modern versions of OpenConnect link against libstoken and can send an autogenerated tokencode as the password. Import your token using the above instructions, then:

$ openconnect -u USERNAME --token-mode=rsa HOSTNAME

https://sourceforge.net/projects/stoken/

https://github.com/cernekee/stoken

NOTE: This command line version supports multiple tokens on the following manner:

$ cd /home/nemo (default path)
$ stoken import --token http://127.0.0.1/securid/ctf?ctfData=2000...
$ mv .stokenrc .token1
$ stoken import --token com.rsa.securid.iphone://ctf?ctfData=2000...
$ mv .stokenrc .token2
$ stoken tokencode --rcfile=.token1
$ stoken tokencode --rcfile=.token2

 

DEPENDENCIES:

gmp >= 6.1.2
nettle >= 3.4

I've established above dependencies to ensure proper stoken functionality but it will probably work with older versions, you can find both libraries already compiled for armv7hl in my repository, if you install this rpm via warehouse app, it will automatically satisfy the proper dependencies unless you have older versions of gmp or nettle in your system, if that's the case, please uninstall them first.

Application versions: 
AttachmentSizeDate
File stoken-0.92-1.armv7hl.rpm185.67 KB29/12/2017 - 06:55
Changelog: 

Latest release (0.92) from original source https://github.com/cernekee/stoken compiled for armv7hl