Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

The information for creating Node files to perform admin on a remote non ibp fabric is incomplete regarding tls ca certs #1319

Closed
davidkel opened this issue Aug 21, 2019 · 2 comments · Fixed by #1329
Assignees
Labels
bug Something isn't working external
Milestone

Comments

@davidkel
Copy link

The only information in the readme I could find was this

Here is an example of a peer with TLS enabled, please note the pem property value has been shortened.

{
    "name": "peer0.org1.example.com",
    "api_url": "grpcs://localhost:17051",
    "type": "fabric-peer",
    "msp_id": "Org1MSP",
    "pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNJVENDQWNpZ0F3"
 }

But it doesn't describe the contents of the pem field.
The pem field is the root tls cert of the peers MSP (ie it's the TLS CA Cert for the MSP) and it has been base64 encoded from a pem file (so that if you decode it you get a valid pem file with correct newlines, not a string embedded with \ns for example)
Without this information it's not possible to create node files manually for fabrics using TLS

@lesleyannjordan
Copy link
Contributor

Ticket result of external source - setting flag

@davidkel
Copy link
Author

A minor typo also exists when describing a multi-node entry in a single JSON file in the read me, ie

[
    {
         "name": "orderer.example.com",
         "api_url": "grpc://localhost:17050",
         "type": "fabric-orderer",
         "msp_id": "OrdererMSP",
         "cluster_name": "myCluster"
     },
     {
          "name": "orderer.example.com",
          "api_url": "grpc://localhost:17050",
          "type": "fabric-orderer",
          "msp_id": "OrdererMSP",
          "cluster_name": "myCluster"
     }
]

But these are identical definitions so technically not valid.

@cazfletch cazfletch added this to the Sprint 14 milestone Aug 22, 2019
@cazfletch cazfletch self-assigned this Aug 27, 2019
cazfletch added a commit that referenced this issue Aug 27, 2019
Updated description of the pem property
Made orderer nodes not be duplicated

closes #1319

Signed-off-by: Caroline Fletcher <caroline.fletcher@uk.ibm.com>
lesleyannjordan pushed a commit to lesleyannjordan/blockchain-vscode-extension that referenced this issue Aug 30, 2019
Updated description of the pem property
Made orderer nodes not be duplicated

closes IBM-Blockchain#1319

Signed-off-by: Caroline Fletcher <caroline.fletcher@uk.ibm.com>

Update menu text (IBM-Blockchain#1116)

Updates wallet menu text and references in tutorials

closes IBM-Blockchain#1116

Signed-off-by: Lesley-Ann Jordan <lesleyannj@hotmail.com>
@lesleyannjordan lesleyannjordan added bug Something isn't working external and removed external bug labels Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working external
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants