Composing the orderer certificate PEM file

As a Fabric participant, we need to compose the orderer certificate, based on the information in the orderer settings file, in order to be able to join the network. Open the settings file, and note that it uses JSON for its structure, which includes the certificates and connection information of the ordering service managed by OABCS.

The contents of the orderer settings file is shown here:

{   "mspid": "AcmeServices", "tlscacerts": "-----BEGIN CERTIFICATE-----\nMIICZjCCAg2gAwIBAgIQYaE18EUOf7aftpx94MmnVTAKBggqhkjOPQQDAjCBhDEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xIDAeBgNVBAoTF2FjbWViY3Mub3JhY2xlY2xvdWQuY29tMSYwJAYD\nVQQDEx10bHNjYS5hY21lYmNzLm9yYWNsZWNsb3VkLmNvbTAeFw0xODA2MjcxNTE5\nMTNaFw0yODA2MjQxNTE5MTNaMIGEMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2Fs\naWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEgMB4GA1UEChMXYWNtZWJj\ncy5vcmFjbGVjbG91ZC5jb20xJjAkBgNVBAMTHXRsc2NhLmFjbWViY3Mub3JhY2xl\nY2xvdWQuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXjJQv3mMvt33DFri\nPt8MQK3/W5P+A1hdRxxz1t8nxBMA8XDxoQmLrJVf633lJbuOZ6a1U4WXcHFnYgqN\nuQsOEqNfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1UdJQQIMAYGBFUdJQAwDwYDVR0T\nAQH/BAUwAwEB/zApBgNVHQ4EIgQgzcanqxKFSrIrG67dZ850h3Hh+EJTutVW0GhL\nbRURWkIwCgYIKoZIzj0EAwIDRwAwRAIgAU+JzGFRwUcUHDjzndXNXWToYeBnqA5j\nmi4JxHMQP2gCIFzM0+rM53MvjuGeANn38Z/UNr3+1Fd68ihYlK6B4j5w\n-----END ...

Get Blockchain across Oracle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.