[英]Failing to init Hyperledger Fabric CA, “Failed to get user”
我按照下面的鏈接安裝了結構:
https://www.mlgblockchain.com/setup-hyperledger-client.html
但是出現錯誤
服務器端
root@amit-VirtualBox:/home/amit# fabric-ca-server init -b “admin:adminpw”
2017/09/15 10:40:20 [INFO] Home directory for default CA: /opt/Fabric-CA/server
2017/09/15 10:40:20 [INFO] Listening on http://0.0.0.0:7054
2017/09/15 10:41:07 [INFO] 127.0.0.1:59210 POST /enroll 401 23 "Failed to get user: User not found
兩者都在同一台服務器上運行。
嘗試刪除命令中的invereted逗號。
刪除服務器和客戶端文件夾,並按照博客中的說明進行操作,避免使用逗號分隔。
1.初始化服務器
fabric-ca-server init -b admin:adminpw
2.啟動服務器
fabric-ca-server start -b admin:adminpw
3.注冊管理員
fabric-ca-client enroll -u http://admin:adminpw@localhost:7054
4.創建新用戶並注冊
fabric-ca-client register -u http://localhost:7054 --id.name test --id.secret testpw --id.type client --id.affiliation org1.department1
希望您不會遇到收到的錯誤!
假設您已成功構建Fabric ca服務器和客戶端。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.