hyperledger-bevel / bevel-operator-fabric

Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, soon 3.0)
https://hyperledger-bevel.github.io/bevel-operator-fabric/
Apache License 2.0
280 stars 93 forks source link

Error while registering peer #176

Closed pshgpt closed 1 year ago

pshgpt commented 1 year ago

What happened?

I'm getting this error while registering the peer identity. Do you have any idea for it ? {"hosts":null,"certificate_request":"-----BEGIN CERTIFICATE REQUEST-----\nMIIBGTCBwQIBADARMQ8wDQYDVQQDEwZlbnJvbGwwWTATBgcqhkjOPQIBBggqhkjO\nPQMBBwNCAAS7ZfLWMaAv8a8RAeplxMaKq3C742dH31C6ukoQTCVcnaEjWvC4rkmK\n5AcyRFNAIGn1LNokMwBjqEdFepmFrllloE4wTAYJKoZIhvcNAQkOMT8wPTA7BgNV\nHREENDAygjBpcC0xOTItMTY4LTI1LTQwLmFwLXNvdXRoZWFzdC0xLmNvbXB1dGUu\naW50ZXJuYWwwCgYIKoZIzj0EAwIDRwAwRAIgVovR5Oh3ENujdBAH4BPLpDMppNsN\nIIo1mYv1BERjwdsCIH4NF2o8CSiGt4KwaOfzYdBpVf6ijd2gTvXISNJnj148\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://143.244.138.201:30112/enroll": x509: certificate is valid for 127.0.0.1, not 143.244.138.201

What did you expect to happen?

Created successfully

How can we reproduce it (as minimally and precisely as possible)?

kubectl hlf ca register --name=ca-test --user=peer0-test --secret=peerpw --type=peer --enroll-id enroll --enroll-secret=enrollpw --mspid testOrgMSP

Anything else we need to know?

No response

Kubernetes version

```console # kubectl get nodes -o wide ```
adityajoshi12 commented 1 year ago

While setting up the CA ensure that you have added the all the hosts and the FQDN in the CSR section. You can use --output flag to view your CA CustomResource (CR)

thapld commented 1 year ago

I have to install istio and add domain first.