-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Fabric and AWS CloudHSM doc updates #2972
Comments
After some extensive googling I found that the label should be the HSM cluster name: This gets me a bit further (I init a brand new fabric ca server here as a simpler example than enroll):
|
@davidkel Should the label suggestion and/or other troubleshooting tips be added to the HSM docs? |
Actually that error was because the AltId value was the same between 2 |
@denyeart Looks like the label field is dependent on the version of the cloudhsm library used. For v3 it's |
Ah that was my guess, the only discussion/documentation I found about the need and use of AltId for AWS CloudHSM are these links:
I forgot to mention I am using fabric-ca v1.5.2 and fabric-peer v2.2.4. If the AltId must really be unique for each cert enrolment then I think it's impossible to bootstrap a root fabric-ca-server with TLS enabled. The bootstrap steps are supposed to be:
These 2 steps use the same AltId value (there is no config option for a different AltId for TLS) so maybe that's why the TLS step fails with:
I'll be continuing this discussion about bootstrapping fabric-ca-server in hyperledger/fabric-ca#259 but as a first step it would indeed be very helpful to have more documentation regarding the peculiarities of the AWS CloudHSM configuration and limitations compared to softhsm for example. |
The documentation should also be checked to see if it states that TLS certificates cannot be managed by HSM for fabric (for a start TLS certs are outside the control of BCCSP) and should be added if it isn't there |
I have confirmed that TLS certs are not managed by HSM in release-2.3.2. |
@theblop Im facing the same issue, are you planning to write a blog or if you could explain the resolution here would be of great help, thanks. |
HI can u guys confirm if documentation for cloudhsm integration for fabric is updated |
The suggestions from this issue are not yet included in Fabric docs. We would welcome anybody with knowledge/experience on this topic to edit this page via pull request: See also #2486 which was backported to release-2.2 and later branches. |
While I don't have AWS CloudHSM expertise to update the docs, I've at least updated the docs in #5030 to indicate that HSM is not supported for TLS keys as per the above comment #2972 (comment). |
Hello,
Are there any detailed docs about how to configure fabric with AWS CloudHSM?
I've set up a CloudHSM instance and can connect to it with the cloudhsm_mgmt_util tool. I created a CU "fabric" user and I configured the fabric-ca-client tool like this:
However when I try to enroll a user with fabric-ca-client I get this error:
Error: Failed to get BCCSP with opts: Could not initialize BCCSP PKCS11: pkcs11: could not find token with label cavium
Here is the libcloudhsm log:
(I know I'm talking about fabric-ca-client and not fabric-peer or orderer but I guess it's the same code between the 2 projects)
In any case, a detailed setup guide with AWS CloudHSM would be very welcome in the Fabric docs.
The text was updated successfully, but these errors were encountered: