ghost94
ghost94

Reputation: 29

Generate TLS Certs using fabric-ca-server

I am searching for a way to generate TLS certs for nodes using a fabric-ca-server. I am using fabric-ca-client. I have used cryptogen tool to generate the TLS certs to get something like this.

tls

├── ca.crt

├── server.crt

└── server.key

Running the command

fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 -M ./OrgMSP --enrollment.profile 
tls

generates directory as shown below 

msp

├── admincerts

├── cacerts

├── keystore

├── signcerts

└── tlscacerts

but cannot seem to get the TLS certs. So, is there a way to get these certs using the same fabric-ca service? If so, what options to provide while using the fabric-ca-client.

Upvotes: 2

Views: 502

Answers (1)

Arun Salaria
Arun Salaria

Reputation: 984

There is no difference bw two you can copy the file inside the cacerts and rename it to ca.crt, file keystore to server.key and file in side the signcerts to server.crt and create the exact structure like generated by the cryptogen.

Upvotes: 1

Related Questions