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

Support cert/private keys as string in connection profile #75

Open
marcelloromani opened this issue May 6, 2020 · 0 comments
Open

Support cert/private keys as string in connection profile #75

marcelloromani opened this issue May 6, 2020 · 0 comments

Comments

@marcelloromani
Copy link

The connection profile (network.json) supports specifying certs and private keys as a path.

Similarly to what the NodeJS sdk client provides (https://github.com/hyperledger/fabric-sdk-node/blob/master/test/fixtures/profiles/network.json#L49) it would be useful to allow specifying the certificates contents directly as strings, e.g.

      "users": {
        "Admin": {
          "cert_pem": "-----BEGIN CERTIFICATE-----\nMIIB+zCCAaGgAwIBAgIUSFaxTErz/QK2xfiFuHR3km8cNFowCgYIKoZIzj0EAwIw\nWjELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcn ... n-----END CERTIFICATE-----"
          "private_key_pem": "-----BEGIN PRIVATE KEY-----\nMIGHAgEAM ... 5zIHXyi2yB+hWxJ\n-----END PRIVATE KEY-----"
        }
      }

[...]

      "tlsCACerts": {
        "pem": "-----BEGIN CERTIFICATE-----\nMIIB+zCCAaGgAwIBAgIUSFaxTErz/QK2xfiFuHR3km8cNFowCgYIKoZIzj0EAwIw\nWjELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcn ... n-----END CERTIFICATE-----"
      },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants