Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

info about right pattern on hsm restart #3

Closed
armando-basile opened this issue Aug 27, 2019 · 3 comments
Closed

info about right pattern on hsm restart #3

armando-basile opened this issue Aug 27, 2019 · 3 comments

Comments

@armando-basile
Copy link

armando-basile commented Aug 27, 2019

Hi Xipki, i would like to implement a right pattern in case of restart hsm necessary.
I saw that, after i restarted hsm, i received this error on next use
Unknwon mechanism with code: 0x0000000080000384

Which should be a right pattern ?

  • Is there a method to check module state ? So i could try to check state before perform operations.
  • If there is a specific exception, i could try to manage exception and launch reinit module (should i finalize and initialize in this case ?)
  • i could try to use getInfo() to detect if module state is no good ?
  • Should i shutdown and restart application completely ?
@xipki
Copy link
Owner

xipki commented Aug 27, 2019

  1. As mentioned in use xipki/pkcs11wrapper instead mikma/pkcs11wrapper #1, the re-init of HSM module cannot be implemented. You need to restart the JVM.
  2. Related to the Unknown mechanism error, please provide more log information.

@armando-basile
Copy link
Author

armando-basile commented Aug 28, 2019

Ok, so, of i understand, of hsm power off and after power on i need to restart jvm to reinitialize modulo and go away, it's right ?

Thanks

@xipki
Copy link
Owner

xipki commented Aug 28, 2019

Yes, you need to restart the jvm.

@xipki xipki closed this as completed Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants