hyperledger / hyperledger/fabric-sdk-py
Support cert/private keys as string in connection profile
- 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
Assessment
This issue has not been assessed yet.