1

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

salman faris
  • 125
  • 1
  • 1
  • 18

1 Answers1

1

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

salman faris
  • 125
  • 1
  • 1
  • 18
  • Just to clear it up for other readers: RSA is not supported by Hyperledger Fabric. See https://hyperledger-fabric.readthedocs.io/en/latest/msp.html#how-to-generate-msp-certificates-and-their-signing-keys – haggis Jun 18 '20 at 14:42