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

Enrollment token while registering user #437

Open
Vishva066 opened this issue Nov 4, 2024 · 0 comments
Open

Enrollment token while registering user #437

Vishva066 opened this issue Nov 4, 2024 · 0 comments

Comments

@Vishva066
Copy link

I am trying to use the Fabric CA Server API. In which it is requesting for enrollment token as a authorisation. How to generate this enrollment token. I tried the following steps:

  1. Took the signcert of the identity which was bootstraped and converted to base64.
  2. Then created a request.json which includes the body of the request which I am going to register.
  3. Then took the sign cert and request.json along with the private key of the bootstraped identity and created a signature using this command.
    cat cert.pem request_body.json | openssl dgst -sha256 -sign priv_sk | base64 | tr -d '\n'
  4. THen joined the base64 enrollment certificate and base64 signature using dot(.)
  5. But got an error "Invalid token in authorization header: Failed to decode base64 encoded x509 cert: illegal base64 data at input byte 6"

Is these steps correct what is the correct flow here ???

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

1 participant