SANS missing from ca cert


Abhijeet Bhowmik <abhijeet@...>
 

Dear All,

I need some help with fabric-ca. I have specified ```FABRIC_CA_SERVER_CSR_HOSTS``` as env variable while booting fabric-ca as a docker container. But still SANS section of ca-cert.pem is empty. So when I try to call the fabric-ca and set verify: true, that is application attempts to verify CA cert, it throws error.


Error: Calling register endpoint failed with error [Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: 192.168.1.6 is not in the cert's list: ]\n


What am I doing wrong?


Thanks a lot
Abhijeet Bhowmik

Join fabric@lists.hyperledger.org to automatically receive all group messages.