Чтобы протестировать сертификаты CA для Fabric CA: Руководство пользователя Fabric CA Я следовал следующим указаниям: Защита PostgreSQL с использованием hostssl cert clientcert = 1
Infabric-ca-server-config.yaml Я поставил:
ca:
# Name of this CA
name: fabric_ca
# Key file (is only used to import a private key into BCCSP)
keyfile: /etc/ssl/private/fabric_ca.key
# Certificate file (default: ca-cert.pem)
certfile: /usr/local/share/ca-certificates/fabric_ca.crt
# Chain file
chainfile:
db:
type: postgres
datasource: host=localhost port=5433 user=postgres password=pwd
dbname=fabmnet_ca sslmode=require
tls:
enabled: false
certfiles:
client:
certfile: /home/marco/.postgresql/postgresql.crt
keyfile: /home/marco/.postgresql/postgresql.key
При запуске fabric-ca-server:
(base) marco@pc:~/fabric/fabric-ca$ fabric-ca-server init -b admin:adminpw
2019/10/01 15:11:48 [INFO] Configuration file location: /home/marco/fabric
/fabric-ca/fabric-ca-server-config.yaml
2019/10/01 15:11:48 [INFO] Server Version: 1.4.4
2019/10/01 15:11:48 [INFO] Server Levels: &{Identity:2 Affiliation:1
Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2019/10/01 15:11:48 [INFO] The CA key and certificate files already exist
2019/10/01 15:11:48 [INFO] Key file location: /etc/ssl/private
/fabric_ca.key
2019/10/01 15:11:48 [INFO] Certificate file location: /usr/local/share/ca-
certificates/fabric_ca.crt
2019/10/01 15:11:48 [FATAL] Initialization failure: Validation of
certificate and key failed: Invalid certificate in file '/usr/local
/share/ca-certificates/fabric_ca.crt': No usage specified for
certificate
Есть идеи, как решить эту проблему? Marco