Created
February 23, 2018 09:37
-
-
Save watahani/c1b5cc9a23495945e096473ea67b44f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install -y libcurl3 opensc | |
curl https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-1.0.1-ubuntu1604-amd64.tar.gz | tar zx -C ./ | |
dpkg -i yubihsm2-sdk/libyubihsm1_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/libyubihsm-dev_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-connector_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-shell_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yhwrap_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-pkcs11_1.0.1-1_amd64.deb | |
# something wrong... | |
dpkg -i yubihsm2-sdk/yubihsm-setup_1.0.1-1_amd64.deb | |
Selecting previously unselected package yubihsm-setup. | |
(Reading database ... 37659 files and directories currently installed.) | |
Preparing to unpack .../yubihsm-setup_1.0.1-1_amd64.deb ... | |
Unpacking yubihsm-setup (1.0.1-1) ... | |
dpkg: dependency problems prevent configuration of yubihsm-setup: | |
yubihsm-setup depends on libyubihsm; however: | |
Package libyubihsm is not installed. | |
dpkg: error processing package yubihsm-setup (--install): | |
dependency problems - leaving unconfigured | |
Processing triggers for man-db (2.7.5-1) ... | |
Errors were encountered while processing: | |
yubihsm-setup | |
# It seems not work. | |
yubihsm-setup -c http://192.168.10.130:12345 | |
error: 'yubihsm-setup' requires a subcommand, but one was not provided | |
USAGE: | |
yubihsm-setup --connector <connector> <SUBCOMMAND> | |
For more information try --help | |
# I changed the option... | |
yubihsm-setup --connector http://192.168.10.130:12345 | |
error: 'yubihsm-setup' requires a subcommand, but one was not provided | |
USAGE: | |
yubihsm-setup --connector <connector> <SUBCOMMAND> | |
For more information try --help | |
# yubihsm-shell worked well | |
yubihsm-shell -C http://192.168.10.130:12345 | |
yubihsm> connect | |
Session keepalive set up to run every 15 seconds | |
yubihsm> session open 1 password | |
Created session 0 | |
yubihsm> list objects 0 | |
Found 2 object(s) | |
id: 0x0001, type: authkey, sequence: 0 | |
id: 0x0052, type: authkey, sequence: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment