Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README to reflect how to use config file correctly #3

Open
rmhrisk opened this issue Dec 7, 2016 · 3 comments
Open

Update README to reflect how to use config file correctly #3

rmhrisk opened this issue Dec 7, 2016 · 3 comments
Assignees

Comments

@rmhrisk
Copy link
Contributor

rmhrisk commented Dec 7, 2016

image

@rmhrisk
Copy link
Contributor Author

rmhrisk commented Dec 7, 2016

This is what was there:

Create config file

// config.json
{
    "lib": "/usr/local/lib/softhsm/libsofthsm2.so",
    "libName": "SoftHSMv2.0",
    "slot": 0,
    "pin": "password"
}

Start console application

graphene

Load module from config file

> module init -p config.json

Get list of objects

> object list -s 0 

@cliff0412
Copy link

encounter same problem here, not able to init

@microshine
Copy link
Contributor

Looks like I removed that feature in the last update. I published the new version v1.1.0

This version supports module load -c <file> command

> module load -c config.json

Module info
==============================

  Library: /usr/local/lib/softhsm/libsofthsm2.so
  Name: SoftHSMv2.0
  Cryptoki version: 2.40


Slot info
==============================

  Handle: 62777142
  Description: SoftHSM slot ID 0x62777142
  Manufacturer ID: SoftHSM project
  Firm version: 2.6
  Hardware version: 2.6
  Flags:
    HW: false
    Removable device: false
    Token present: true
  Token:
    Label: My slot 0
    Manufacturer ID: SoftHSM project
    Model: SoftHSM v2
    Serial number: 6e6b3718e2777142
    Max PIN length: 255
    Min PIN length: 4
    Max session count: 0
    Session count: 18446744073709552000
    Max RW session count: 0
    RW session count: 18446744073709552000
    Total private memory: 18446744073709552000
    Free private memory: 18446744073709552000
    Total public memory: 18446744073709552000
    Free public memory: 18446744073709552000
    Firm version: 2.6
    Hardware version: 2.6
    Flags:
      Initialized: true
      Logged in: true

README file includes the description for the JSON file. See description

@WYANG008 Could you try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants