Seafoodair / neublockchain

Apache License 2.0
6 stars 0 forks source link

fabric-ca初始化失败 #6

Closed Seafoodair closed 1 year ago

Seafoodair commented 1 year ago

2023/06/25 01:57:18 [DEBUG] Home directory: /etc/hyperledger/fabric-ca 2023/06/25 01:57:18 [DEBUG] parent server URL: '' 2023/06/25 01:57:18 [INFO] Created default configuration file at /etc/hyperledger/fabric-ca/fabric-ca-server-config.yaml 2023/06/25 01:57:18 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca 2023/06/25 01:57:18 [DEBUG] Set log level: 2023/06/25 01:57:18 [INFO] Server Version: 1.4.2 2023/06/25 01:57:18 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1} 2023/06/25 01:57:18 [DEBUG] Making server filenames absolute 2023/06/25 01:57:18 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca 2023/06/25 01:57:18 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca and config {Version:1.4.2 Cfg:{Identities:{PasswordAttempts:10 AllowRemove:true} Affiliations:{AllowRemove:false}} CA:{Name:tlsca.example.com Keyfile:/etc/hyperledger/fabric-ca/tlsca/tlsca.example.com-key.pem Certfile:/etc/hyperledger/fabric-ca/tlsca/tlsca.example.com-cert.pem Chainfile:ca-chain.pem} Signing:0xc0001b80f0 CSR:{CN:tlsca.example.com Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[0.0.0.0] KeyRequest:0xc0004a1800 CA:0xc0004a18a0 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name: Pass: Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.Registrar.Roles: hf.Registrar.DelegateRoles: hf.Revoker:1 hf.IntermediateCA:1 hf.GenCRL:1 hf.Registrar.Attributes:* hf.AffiliationMgr:1] }]} Affiliations:map[org2:[department1] org1:[department1 department2]] LDAP:{ Enabled:false URL:ldap://:@:/ UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }} } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }} } CSP:0xc0004a12a0 Client: Intermediate:{ParentServer:{ URL: CAName: } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR: Type:x509 }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}} 2023/06/25 01:57:18 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca 2023/06/25 01:57:18 [DEBUG] Checking configuration file version '1.4.2' against server version: '1.4.2' 2023/06/25 01:57:18 [DEBUG] Initializing BCCSP: &{ProviderName:SW SwOpts:0xc000294e80 PluginOpts:} 2023/06/25 01:57:18 [DEBUG] Initializing BCCSP with software options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false FileKeystore:0xc0003a90b0 DummyKeystore: InmemKeystore:} 2023/06/25 01:57:18 [DEBUG] Initialize key material 2023/06/25 01:57:18 [DEBUG] Making CA filenames absolute 2023/06/25 01:57:18 [DEBUG] Closing server DBs Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca/tlsca/tlsca.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[230 199 110 117 165 238 75 33 162 29 123 162 205 70 76 67 177 73 125 211 81 8 194 56 153 19 59 4 10 32 130 183]]: Key with SKI e6c76e75a5ee4b21a21d7ba2cd464c43b1497dd35108c23899133b040a2082b7 not found in /etc/hyperledger/fabric-ca/msp/keystore

解决方法:清理所有的文件夹,删掉所有加密材料。或者删掉、重建文件夹