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

Getting an error x509: certificate is valid for 127.0.0.1 ,xx.xx.xx.xx not xx.xx.xx.xx #214

Open
PadaliaIsha opened this issue Feb 21, 2024 · 0 comments

Comments

@PadaliaIsha
Copy link

Currently, I'm building a network on Kubernetes using this repo. there were 2 worker nodes. I set up a Kube config file of AWS EKS.

When I run the command :

kubectl hlf ca register --name=${caName} --user=${user} --secret=${secret} --type=${type} \
                --enroll-id ${bootstrapUserId} --enroll-secret=${bootstrapUserSecret} --mspid ${mspId}

Getting an error which is
enroll failed: enroll failed: POST failure of request: POST https://xx.xx.xx.xx:31931/enroll {"hosts":null,"certificate_request":"-----BEGIN CERTIFICATE REQUEST-----\nMIH3MIGfAgEAMBeeeeeeeeBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABJkaVaotjYa3gO1Gm02VDEeiUbedgus0HKJ12xqV7a+Pu5CNNN60jNEG\nAZEpGLV9RvZu0iNnYGToH+HRCs1PJ+qgLDAqBgkqhkiG9w0BCQ4xHTAbMBkGA1Ud\nEQQSMBCCDmRvY2tlci1kZXNrdG9wMAoGCCqGSM49BAMCA0cAMEQCIAEo5t2PqeeeeeeeeTtbiJ7JQDifDDeOOCuv16AiB1ZuIjlIQ/WaylWWmh5gLTcbm3Yyzb\nGS7+9+tbIxUV1g==\n-----END CERTIFICATE REQUEST-----\n","profile":"","crl_override":"","label":"","NotBefore":"0001-01-01T00:00:00Z","NotAfter":"0001-01-01T00:00:00Z","ReturnPrecert":false,"CAName":""}: Post "https://xx.xx.xx.xx:31931/enroll": x509: certificate is valid for 127.0.0.1, xx.xx.xx.xx, not xx.xx.xx

Could anyone please tell me if our cert is stored on any server at first run and we can't access the new cert on new IP or any other issue?

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