hyperledger / hyperledger/fabric-sdk-py

Support cert/private keys as string in connection profile

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
help wanted Priority: Medium Type: Enhancement
Dominant language
Python
Stars
416
Forks
203
PR merge metrics
No merged PRs in 30d

Description

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-----"
},

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.