2017-06-21 38 views
0

在面料-CA-服務器config.yaml添加屬性,我看到下面的註冊表部分評論如何使織物CA服務器證書中

2) once authenticated, **retrieves the identity's attribute names and 
#  values which the fabric-ca-server optionally puts into TCerts 
#  which it issues for transacting on the Hyperledger Fabric blockchain**. 
#  These attributes are useful for making access control decisions in 
#  chaincode. 

我的問題是如何使之強制可否將這些屬性添加到Tcerts? 對於默認設置角色和屬性不包括在生成的證書中

回答

1

儘管fabric-ca-server支持將屬性放入tcerts(事務證書),但包括SDK的客戶端還不支持使用tcerts。他們目前總是使用ecerts(註冊證書)。還有一個jira項目,可以將屬性放入ecerts中。見https://jira.hyperledger.org/browse/FAB-3752。您可以通過jira跟蹤進度並提出任何其他請求。