Use CanoKey Console or ckman to manage OATH credentials.
The web version of CanoKey Console requires Chrome or a Chromium-based browser.
+ at the top of the page, then choose to scan a QR code with the camera, scan a QR code on the screen, or enter the credential manually.TOTP codes are displayed automatically. For a touch-protected TOTP credential, select the touch icon and then touch the CanoKey. To view an HOTP code, select the refresh icon beside the credential.
The HOTP counter advances each time an HOTP code is calculated, so avoid calculating a code repeatedly.
After installing CanoKey Manager, use ckman to manage OATH credentials. The following examples connect through a smart-card reader whose name contains Canokeys. If your system reports a different reader name, adjust the --reader argument accordingly.
otpauth:// URIIf the authentication service provides an otpauth:// URI, import it directly:
ckman --reader "Canokeys" oath accounts uri "otpauth://totp/EXAMPLE.COM:username?secret=SOMESECRET&issuer=EXAMPLE.COM&algorithm=SHA1&digits=6&period=30"
You can also provide each credential parameter separately. The following command adds a TOTP credential that uses SHA-1, six digits, and a 30-second period:
ckman --reader "Canokeys" oath accounts add \
--oath-type TOTP \
--algorithm SHA1 \
--digits 6 \
--period 30 \
--issuer "EXAMPLE.COM" \
"username" "SOMESECRET"
Run ckman oath accounts add --help for HOTP, touch confirmation, and other available options.
List the OATH credentials stored on the device:
ckman --reader "Canokeys" oath accounts list
Calculate codes for all TOTP credentials:
ckman --reader "Canokeys" oath accounts code
You can also provide a name to calculate a specific credential:
ckman --reader "Canokeys" oath accounts code "EXAMPLE.COM:username"
ckman --reader "Canokeys" oath accounts delete "EXAMPLE.COM:username"