当我输入命令“ ./byfn.sh -m generate”时,我也看到了同样的问题。有人告诉我这是许可问题,但我根本不知道,因为这是我第一次研究超级账本结构。我需要更友好的帮助!预先谢谢你!
hyper@traveler5260-VirtualBox:~/go/src/github.com/hyperledger/fabric-samples/first-network$ ../bin/cryptogen generate --config=./crypto-config.yaml
org1.example.com
2019-08-12 00:45:18.288 KST [bccsp_sw] storePrivateKey -> ERRO 001 Failed storing private key [000c5c07b91bf1bf3a8aee1b30591ee5af15844ecbcf3108a58a37ae9db0aa70]: [open crypto-config/peerOrganizations/org1.example.com/ca/000c5c07b91bf1bf3a8aee1b30591ee5af15844ecbcf3108a58a37ae9db0aa70_sk: permission denied]
Error generating signCA for org org1.example.com:
Failed storing key [ECDSAP256]: Failed storing ECDSA private key [open crypto-config/peerOrganizations/org1.example.com/ca/000c5c07b91bf1bf3a8aee1b30591ee5af15844ecbcf3108a58a37ae9db0aa70_sk: permission denied]
答案 0 :(得分:2)
您应将chmod 777
赋予此路径crypto-config/peerOrganizations/org1.example.com/ca/
。这样可以避免此问题。