首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用Hyperledger-Fabric v1.1预览注册用户

无法使用Hyperledger-Fabric v1.1预览注册用户
EN

Stack Overflow用户
提问于 2017-12-19 10:50:50
回答 1查看 977关注 0票数 1

嗨,我无法用fabric v1.1预览注册用户,我正在使用节点-sdk平衡传输示例,这是错误日志。

代码语言:javascript
复制
2017/12/19 10:15:43 [DEBUG] Received request for /api/v1/register
2017/12/19 10:15:43 [DEBUG] Checking for revocation/expiration of certificate owned by 'admin'
2017/12/19 10:15:43 [DEBUG] DB: Get certificate by serial (2579edfb30a98bc8200916a7898f0de00280865) and aki (e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011)
2017/12/19 10:15:43 [DEBUG] Received registration request from : { Name:Jim456 Type: Secret:**** MaxEnrollments:1 Affiliation:org1.department1 Attributes:[{Role  false}] CAName:ca-org1  }
2017/12/19 10:15:43 [DEBUG] Sent error for /api/v1/register: scode: 401, local code: 30, local msg: Certificate not found with AKI 'e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011' and serial '2579edfb30a98bc8200916a7898f0de00280865', remote code: 20, remote msg: Authorization failure

github.com/hyperledger/fabric-ca/lib.newAuthErr
    /opt/gopath/src/github.com/hyperledger/fabric-ca/lib/servererror.go:145
github.com/hyperledger/fabric-ca/lib.(*serverRequestContext).TokenAuthentication
    /opt/gopath/src/github.com/hyperledger/fabric-ca/lib/serverrequestcontext.go:157
github.com/hyperledger/fabric-ca/lib.registerHandler
    /opt/gopath/src/github.com/hyperledger/fabric-ca/lib/serverregister.go:49
github.com/hyperledger/fabric-ca/lib.(*serverEndpoint).ServeHTTP
    /opt/gopath/src/github.com/hyperledger/fabric-ca/lib/serverendpoint.go:44
net/http.(*ServeMux).ServeHTTP
    /opt/go/src/net/http/server.go:2254
net/http.serverHandler.ServeHTTP
    /opt/go/src/net/http/server.go:2619
net/http.(*conn).serve
    /opt/go/src/net/http/server.go:1801
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2337
2017/12/19 10:15:43 [INFO] 172.19.0.1:56246 POST /api/v1/register 401 30 "Certificate not found with AKI 'e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011' and serial '2579edfb30a98bc8200916a7898f0de00280865'"
EN

回答 1

Stack Overflow用户

发布于 2018-03-14 17:40:03

错误:

AKI 'e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011‘未找到证书,串行'2579edfb30a98bc8200916a7898f0de00280865',远程代码: 20,远程消息:授权失败

建议CA找不到您给它的证书(从管理员那里)。

如果您正在向CA注册管理员以获得新的证书,这将解决您的问题。

似乎您正在使用存储在您的KVS存储文件中的旧证书,这些证书属于以前的网络。这个问题只是由您重新启动一个新的网络并保持先前的KVS引起的,因此当您运行您的代码时,它会检查用户是否被存储并使用这些凭据,而不是获取新的凭据。总是记得删除您的kvs时,重新启动您的网络。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47885284

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档