Search code examples
hyperledger-fabrichyperledgerhyperledger-composer

Change the certificates validity in hyperledger Fabric is possible...?


I am new in blockchain development. I just start a sample hyperledger project. The default expired period of certificates is 10 years. Have any solutions or ways are available to increase the certificate validity. I actually need to change it to 20 years. Please give any way to do it.

Fabric:1.1.0

Composer:0.19.16

OS:Ubuntu 16.04


Solution

  • I just suggest to use Openssl for generate the self signed certificate.

    eg:

    openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

    //change day as you want. Hope it helpful.

    Reference: How to create a self-signed certificate with OpenSSL