Giter Club home page Giter Club logo

Comments (9)

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

My config.yaml is written like this

private_key: /home/niqinyin/go/src/github.com/kongyixueyuan.com/education/fixtures/crypto-config/peerOrganizations/org1.kevin.kongyixueyuan.com/users/[email protected]/msp/keystore/c24c159c6de601f2703c4e4273682b08cda54ebdaf4ca1c4aa4b3f80b8a91964_sk

I've tried the user's private key, too.But it always reported such an error

ERRO[0000] error connecting to localhost:7051: failed to load client certificate: tls: private key does not match public key

please help me

ref here for how we config key with fabric sample
https://github.com/guoger/tape/blob/master/test/config20org1andorg2.yaml
and here for CI....
https://dev.azure.com/guojiannan1101/guojiannan1101/_build/results?buildId=412&view=logs&j=e17a8fb5-2251-55b7-e47c-128cd85495af&t=0ddee50c-f18c-55ff-c001-5d076dda0c84&l=1

Honestly speaking, key mismatch is out of tape scope.

from tape.

nthmnqy avatar nthmnqy commented on May 30, 2024

@SamYuan1990 Thank you for your help. But when I write config.yaml, I don't know how to write args. My function name is "addfile",the type of its parameter is []String ,its parameter is [{"FileName":"1.txt","ID":"121","IPAdress":"1.1.1.2","OrgName":"org2","ModifyTime":"8:27 2019/9/12"},eventAddFile], how should I write the args

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

@SamYuan1990 Thank you for your help. But when I write config.yaml, I don't know how to write args. My function name is "addfile",the type of its parameter is []String ,its parameter is [{"FileName":"1.txt","ID":"121","IPAdress":"1.1.1.2","OrgName":"org2","ModifyTime":"8:27 2019/9/12"},eventAddFile], how should I write the args

https://github.com/guoger/tape/blob/master/test/config14org1andorg2.yaml#L27-L29

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

https://github.com/guoger/tape/blob/master/docs/configfile.md

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

don't duplicate issue with #86

from tape.

qii67 avatar qii67 commented on May 30, 2024

My config.yaml is written like this

private_key: /home/niqinyin/go/src/github.com/kongyixueyuan.com/education/fixtures/crypto-config/peerOrganizations/org1.kevin.kongyixueyuan.com/users/[email protected]/msp/keystore/c24c159c6de601f2703c4e4273682b08cda54ebdaf4ca1c4aa4b3f80b8a91964_sk

I've tried the user's private key, too.But it always reported such an error

ERRO[0000] error connecting to localhost:7051: failed to load client certificate: tls: private key does not match public key

please help me

I'm facing the same problem, can you tell me how you solve the problem "private key does not match public key"?
the config.yaml is just like:
mspid: Org1MSP private_key: /config/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/029e6f199d81a1de05811bcadd60a0ab0ac117198ce0d4d05ef859d2f568bcfd_sk sign_cert: /config/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected]

from tape.

xuan-cmd avatar xuan-cmd commented on May 30, 2024

My config.yaml is written like this

private_key: /home/niqinyin/go/src/github.com/kongyixueyuan.com/education/fixtures/crypto-config/peerOrganizations/org1.kevin.kongyixueyuan.com/users/[email protected]/msp/keystore/c24c159c6de601f2703c4e4273682b08cda54ebdaf4ca1c4aa4b3f80b8a91964_sk

I've tried the user's private key, too.But it always reported such an error

ERRO[0000] error connecting to localhost:7051: failed to load client certificate: tls: private key does not match public key

please help me

Can I ask you how you solved it? Please, I need your help.

from tape.

xuan-cmd avatar xuan-cmd commented on May 30, 2024

I checked my configuration, but didn't see where the problem was.

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

In most case, TLS configuration is owned by user. Just point out how to configuration for Tape as usage guide.
As for Tape maintainer can't touch user's network or key settings.

from tape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.