坑1:First received frame was not SETTINGS.
aws的orderer和peer都是tls的,connection.yaml里orderer和peer的url都得是grpcs://开头,然后配置pem文件位置,例如:
peers:
peer1.qmango.example.com:
url: grpcs://nd-dqeikh6lbzfxrdrycc5tb4ift4.m-rii63vw7hbf4zipxnjcbgb2tke.n-auf4vvoemjdsdgxq2qzcpdxsl4.managedblockchain.us-east-1.amazonaws.com:30003
tlsCACerts:
path: managedblockchain-tls-chain.pem
坑2 permition deny
java代码里wallet.put("admin", user);,第一个参数一定是admin,否则没有权限