Skip to content

soracom/endorse-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SORACOM Endorse client (Golang version)

Client library and CLI tool for SORACOM Endorse. This library provides SIM authentication and key agreement (AKA) feature using SORACOM Endorse.

How to use CLI

  1. Install
go install github.com/soracom/endorse-client-go/cmd/endorse-cli

or download executable file from release page.

On Linux, libpcsclite should be installed before using endorse-cli. Ubuntu: sudo apt install pcscd libpcsclite1 libpcsclite-dev && sudo reboot

  1. Plug a smart card reader / USB modem with SORACOM Air SIM to your computer

  2. Run

endorse-cli

You will get a key (CK) if successfully authenticated.

Use -h option for more details.

On Linux, you might need to run the command as root. i.e. sudo endorse-cli to access USB modems or smart card readers.

How to build from source code

go get -u github.com/soracom/endorse-client-go/...
cd $GOPATH/src/github.com/soracom/endorse-client-go/endorse
go test
cd ../cmd/endorse-cli
go build