GoLand导入Fabric-go-sdk包后,执行时报错:
SDK setup error: failed to initialize configuration: unable to load endpoint config: failed to initialize endpoint config from config backend: network configuration load failed: failed to load channel configs: failed to load TLS cert poo
l: failed to create cert pool: crypto/x509: system root pool is not available on
Windows
根据博主:https://www.jianshu.com/p/49e2461e81dc
中所说,应该是Windows系统不支持系统证书池功能。
因此打开config.yaml
tlsCerts:
# [Optional]. Use system certificate pool when connecting to peers, orderers (for negotiating TLS) Default: false
systemCertPool: true
将systemCertPool改为false即可。