Fabric No subject alternative DNS name matching org1.example.com found 问题
Fabric 版本 1.1.0
fabric-sdk-java 版本 1.1.0
远程SDK 调用时出现异常如下:
gRPC failure=Status{code=UNAVAILABLE, description=io exception, cause=javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem
No subject alternative DNS name matching org1.example.com found
目前已知解决方法就是关闭 Fabric 的TLS 验证 可以保证调用成功
1. 修改 docker-compose-cli.yaml 文件中CORE_PEER_TLS_ENABLED为 false
2. 修改 base 目录下的两个配置文件中 CORE_PEER_TLS_ENABLED为 false
3. 使用链接地址 由 grpcs://x.x.x.x:xxxx 改为 grpc://x.x.x.x:xxxx
配置代码如下:
运行结果如下: