Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA管理:建议登陆页弹窗,enroll获取用户证书私钥 #200

Open
dengyi9 opened this issue Mar 20, 2019 · 5 comments
Open

CA管理:建议登陆页弹窗,enroll获取用户证书私钥 #200

dengyi9 opened this issue Mar 20, 2019 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@dengyi9
Copy link
Collaborator

dengyi9 commented Mar 20, 2019

建议登陆页弹窗,调用fabricClient.enroll获取用户证书私钥。
得到enrollment后,输出私钥与证书到客户端外部,供用户用于desktop登陆,或其他地方。

@dengyi9 dengyi9 added the enhancement New feature or request label Mar 20, 2019
@dengyi9 dengyi9 added this to the v0.3.0 milestone Mar 20, 2019
IamChuancey added a commit to IamChuancey/hyperledger-fabric-desktop that referenced this issue Mar 22, 2019
@IamChuancey
Copy link
Collaborator

登录弹窗表单域暂定如下:
用户名「Input」,
密码 「Input」,
输出文件夹位置 [Directory]
注册 「Button」

@IamChuancey
Copy link
Collaborator

关于注册逻辑 是否还有改进的可能?
对于不清楚Fabric-ca处理逻辑的普通用户来说,他们拿到我们的客户端的想法一定是像普通Web或App注册流程那样,先填个账号和密码注册信息,注册成功后就可以拿生成的证书然后登录系统,虽然,注册是fabric-ca admin的事情,但是,是否有改进的余地?同时也要考虑普通用户的需求,至少,我们不能做出一个反人类设计的客户端出来。

@IamChuancey
Copy link
Collaborator

登录弹窗表单域如下:
Fabric_CA_Server 「fabric-ca-server-url」
用户名「Input」,
密码 「Input」,
输出文件夹位置 「Directory」,
注册 「Button」

@IamChuancey
Copy link
Collaborator

注册逻辑:
Hyperledger Fabric框架本身对用户的准入是有限制的,可以理解为邀请制,对能进入联盟链的用户需fabrci-ca admin 邀请,用户必须首先出现在注册名单里,所以我们的客户端登录首页的注册弹窗只是用户拿到证书的过程,关于用户的注册要留给fabric-ca-admin,而不是用户注册账号然后再拿到证书,这样有悖于fabric的设计初衷。

@dengyi9
Copy link
Collaborator Author

dengyi9 commented Mar 26, 2019

具体代码实现上,以下可供参考

  1. 页面获取表单数据
  2. 使用表单数据,更新dbConfig。 主要需更新 caServerUrl
  3. 获取getFabricClientSingleton,调用 fabric.enroll方法,输入用户名、密码参数,成功得到enrollment
  4. 将enrollment中的证书、私钥数据,写到外部文件系统

IamChuancey added a commit to IamChuancey/hyperledger-fabric-desktop that referenced this issue Apr 2, 2019
IamChuancey added a commit to IamChuancey/hyperledger-fabric-desktop that referenced this issue Apr 2, 2019
IamChuancey added a commit to IamChuancey/hyperledger-fabric-desktop that referenced this issue Apr 2, 2019
dengyi9 added a commit to dengyi9/hyperledger-fabric-desktop that referenced this issue Apr 3, 2019
dengyi9 added a commit that referenced this issue Apr 3, 2019
 CA Management: Enrollment in Login Page. #200. And fix bugs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants