客户ca服务器DB

发布于 2025-01-18 07:12:59 字数 446 浏览 3 评论 0原文

我正在构建一个 Hyperledger Fabric 区块链应用程序(docker 容器),其中我还创建了一个应用程序网关(docker 容器),其中使用 Node js 作为后端服务与其进行交互。

令我惊讶的是,我亲眼目睹了以下案例: 我已经注册了新用户,并使用网络的 CA 通过应用程序网关和官方 Fabric SDK 注册了他们,并将它们存储在 Fabric 钱包中。我意识到它们存储在与 Fabric ca docker 容器的 /etc/hyperledger/fabric-ca-server/ 目录下不同的 Fabric-ca-server.db 中。

我的意思是,当我尝试通过 cli 列出身份时,我得到的身份为零,因为它们是通过 SDK 注册的。当我尝试从 SDK 注册相同的身份时,我收到了用户已注册的常见消息。

但我无法找到该 Fabric-ca-server.db 的存储位置,该数据库读取应用程序网关(SDK)

I am building a Hyperledger Fabric blockchain application (docker containers) where I have created also an application gateway (docker container) with node js to interact with it as a backend service.

For my surprise I have witnessed the following case:
I have registered new users and enrolled them through the application gateway and the official Fabric SDK using the CAs of the network and stored them in the Fabric Wallet. And I realized that they are stored in a different fabric-ca-server.db than the one that lives under the /etc/hyperledger/fabric-ca-server/ directory of the fabric ca docker container.

What I mean is that when I tried to list the identities through the cli I got zero identities since they were registered through SDK. And when I tried to register the same identities from the SDK I got the usual message of user is already registered.

But I was not able to find where this fabric-ca-server.db is stored that reads for the application gateway (SDK)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青巷忧颜 2025-01-25 07:12:59

DB文件可以使用以下路径在CA容器中找到,

/etc/hyperledger/fabric-ca-server 

您会发现Docker组合文件中也提到了此路径。

The DB file can be found in the CA container using the following path

/etc/hyperledger/fabric-ca-server 

You will find that this path is also mentioned in the docker compose file.

情仇皆在手 2025-01-25 07:12:59

上面答案中所述的正确路径是fabric CA容器内的目录!

我的错误是,通过应用程序 SDK,我只注册了一些管理员,而没有注册他们。这只是颁发证书,而不将它们添加到实际的数据库中。在我注册了一些用户并注册它们之后,我可以在 docker 容器中的数据库中查看它们。

The correct path as is stated in the above answer is the directory inside the fabric CA container!

My mistake was that through the application SDK I was only enrolling some admins without registering them. And this was only issuing certificates without adding them to the actual db. After I registered some users and registered them I was able to view them all in the db that is in the docker container.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文