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

Error on key generation #422

Closed
microshine opened this issue Jun 29, 2021 · 2 comments
Closed

Error on key generation #422

microshine opened this issue Jun 29, 2021 · 2 comments
Labels

Comments

@microshine
Copy link
Collaborator

Token: IDPrime
OS: Windows
Version: 1.8.1

Log

{
  "source": "server",
  "error": "Rsa: Can not generate new key CKR_ATTRIBUTE_TYPE_INVALID:18
    at Error (native) PKCS11::C_GenerateKeyPair:929",
  "stack": "Error: Rsa: Can not generate new key CKR_ATTRIBUTE_TYPE_INVALID:18
    at Error (native) PKCS11::C_GenerateKeyPair:929
    at main.js:281:51075
    at main.js:256:302351",
  "level": "error",
  "message": "Server event error",
  "timestamp": "2021-06-28T16:00:49.707Z"
}
@microshine microshine added the bug label Jun 29, 2021
@microshine
Copy link
Collaborator Author

Fortify adds sensitive flag to public key template

{
  id: <Buffer e7 9e 87 22 95 95 0f ba 47 e8 ba 48 db e6 cb bf 5d 09 07 08>,
  sensitive: true,
  token: true,
  label: 'RSA',
  verify: true,
  class: 2,
  private: false,
  keyType: 0,
  publicExponent: <Buffer 01 00 01>,
  modulusBits: 2048
}

@microshine
Copy link
Collaborator Author

@webcrypto-local/server@1.6.5 fixes this issue

@microshine microshine mentioned this issue Jul 5, 2021
@donskov donskov mentioned this issue Jul 5, 2021
@donskov donskov closed this as completed in a445445 Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant