Ошибка при запуске CA-TLS fabri c -ca-server с PKCS11 и программным обеспечением - PullRequest
0 голосов
/ 26 февраля 2020

Мои c-tls docker compose содержат следующее:

version: '2'

networks:
  fabric-ca:
services:
  ca-tls:
    container_name: ca-tls
    image: hsm:latest
    command: sh -c 'fabric-ca-server start -d -b tls-ca-admin:tls-ca-adminpw --port 7052'
    environment:
      - FABRIC_CA_SERVER_HOME=/etc/hyperledger/fabric-ca/crypto
      - FABRIC_CA_SERVER_TLS_ENABLED=true
      - FABRIC_CA_SERVER_CSR_CN=ca-tls
      - FABRIC_CA_SERVER_CSR_HOSTS=0.0.0.0
      - FABRIC_CA_SERVER_DEBUG=true
      - FABRIC_CA_SERVER_BCCSP_DEFAULT=PKCS11
      - FABRIC_CA_SERVER_BCCSP_PKCS11_LIBRARY=/usr/local/lib/softhsm/libsofthsm2.so
      - FABRIC_CA_SERVER_BCCSP_PKCS11_PIN=12345678
      - FABRIC_CA_SERVER_BCCSP_PKCS11_LABEL=fabric
      - SOFTHSM2_CONF=/etc/hyperledger/fabric/softhsm2.conf
      - GODEBUG=netdns=go
    volumes:
      - "./server:/etc/hyperledger/fabric-ca"
      - /etc/softhsm2.conf:/etc/hyperledger/fabric/softhsm2.conf
      - /usr/local/lib/softhsm/libsofthsm2.so:/usr/local/lib/softhsm/libsofthsm2.so
      - /var/lib/softhsm/tokens:/var/lib/softhsm/tokens
    networks:
      - fabric-ca
    ports:
      - 7052:7052

Я выполнил следующую команду:

docker-compose -f ca-tls.yaml -p hsm up -d

Ниже приведены журналы docker:

2020/02/26 06:49:47 [DEBUG] Home directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:49:47 [INFO] Configuration file location: /etc/hyperledger/fabric-ca/crypto/fabric-ca-server-config.yaml
2020/02/26 06:49:48 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:49:48 [DEBUG] Set log level: 
2020/02/26 06:49:48 [INFO] Server Version: 2.0.0-snapshot-d766c5f
2020/02/26 06:49:48 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2020/02/26 06:49:48 [DEBUG] Making server filenames absolute
2020/02/26 06:49:48 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:49:48 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca/crypto and config {Version:2.0.0 Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name: Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc0003f7a90 CSR:{CN:ca-tls Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[0.0.0.0] KeyRequest:0xc0003468e0 CA:0xc000346960 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1]  }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@<host>:<port>/<base> UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }}  } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }}  } CSP:0xc0003464c0 Client:<nil> Intermediate:{ParentServer:{ URL: CAName:  } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR:<nil> Type:x509  }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}}
2020/02/26 06:49:48 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:49:48 [DEBUG] Checking configuration file version '2.0.0' against server version: '2.0.0-snapshot-d766c5f'
2020/02/26 06:49:48 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts:<nil> Pkcs11Opts:0xc00042c7e0}
2020/02/26 06:49:48 [DEBUG] Initializing BCCSP with PKCS11 options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false Library:/usr/local/lib/softhsm/libsofthsm2.so Label:fabric Pin:12345678 SoftVerify:false Immutable:false}
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x15b36 pc=0x15b36]

runtime stack:
runtime.throw(0xdbee33, 0x2a)
    /usr/local/go/src/runtime/panic.go:774 +0x72
runtime.sigpanic()
    /usr/local/go/src/runtime/signal_unix.go:378 +0x47c

goroutine 1 [syscall]:
runtime.cgocall(0xbe28c0, 0xc000313030, 0xc000313080)
    /usr/local/go/src/runtime/cgocall.go:128 +0x5b fp=0xc000313000 sp=0xc000312fc8 pc=0x40b77b
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11._Cfunc_Initialize(0x14b3560, 0x0)
    _cgo_gotypes.go:1203 +0x4a fp=0xc000313030 sp=0xc000313000 pc=0x84555a
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11.(*Ctx).Initialize.func1(0xc0000b6338, 0xc0000b6338)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11/pkcs11.go:805 +0x5e fp=0xc000313070 sp=0xc000313030 pc=0x84f82e
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11.(*Ctx).Initialize(0xc0000b6338, 0x25, 0xc0000b6338)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11/pkcs11.go:805 +0x2b fp=0xc000313090 sp=0xc000313070 pc=0x847b5b
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11.loadLib(0xc00003e026, 0x25, 0xc0000380e2, 0x8, 0xc000038114, 0x6, 0xc0000bcc30, 0x0, 0x0, 0xcb5f00, ...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:35 +0x127 fp=0xc000313320 sp=0xc000313090 pc=0x85a017
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11.New(0x100, 0xc00003ad20, 0x4, 0x0, 0xc00003e026, 0x25, 0xc000038114, 0x6, 0xc0000380e2, 0x8, ...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11/impl.go:50 +0x173 fp=0xc000313428 sp=0xc000313320 pc=0x858183
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.(*PKCS11Factory).Get(0x14b0050, 0xc0003464c0, 0xd95fd5, 0x2, 0xc0000ad4c8, 0x1)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11factory.go:41 +0x167 fp=0xc000313520 sp=0xc000313428 pc=0x860ca7
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.initBCCSP(0xed5820, 0x14b0050, 0xc0003464c0, 0x0, 0x0)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/factory.go:84 +0x56 fp=0xc0003135d8 sp=0xc000313520 pc=0x860096
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.setFactories(0xc0003464c0, 0xc0000bc000, 0x2)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:74 +0x262 fp=0xc000313678 sp=0xc0003135d8 pc=0x860612
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.InitFactories.func1()
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:39 +0x2a fp=0xc0003136a0 sp=0xc000313678 pc=0x86115a
sync.(*Once).doSlow(0x14b0120, 0xc000313750)
    /usr/local/go/src/sync/once.go:66 +0xe3 fp=0xc000313740 sp=0xc0003136a0 pc=0x475703
sync.(*Once).Do(...)
    /usr/local/go/src/sync/once.go:57
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.InitFactories(0xc0003464c0, 0xdbe263, 0x2a)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:38 +0x81 fp=0xc000313770 sp=0xc000313740 pc=0x8603a1
github.com/hyperledger/fabric-ca/util.ConfigureBCCSP(0xc0004562b0, 0x0, 0x0, 0xc00003c2c0, 0x21, 0xc62a20, 0xc000041400)
    /go/src/github.com/hyperledger/fabric-ca/util/configurebccsp.go:65 +0x276 fp=0xc000313830 sp=0xc000313770 pc=0x96d6d6
github.com/hyperledger/fabric-ca/util.InitBCCSP(0xc0004562b0, 0x0, 0x0, 0xc00003c2c0, 0x21, 0x2, 0x1492b40, 0x63, 0xde5e40)
    /go/src/github.com/hyperledger/fabric-ca/util/csp.go:54 +0x57 fp=0xc000313878 sp=0xc000313830 pc=0x96db67
github.com/hyperledger/fabric-ca/lib.(*CA).init(0xc0000dc1b0, 0x0, 0xbf8da3230030a93a, 0x4fbe5ab)
    /go/src/github.com/hyperledger/fabric-ca/lib/ca.go:156 +0x15e fp=0xc000313938 sp=0xc000313878 pc=0xaea20e
github.com/hyperledger/fabric-ca/lib.initCA(0xc0000dc1b0, 0xc00003c2c0, 0x21, 0xc0004560a8, 0xc0000dc160, 0x0, 0xd5eb00, 0x4)
    /go/src/github.com/hyperledger/fabric-ca/lib/ca.go:131 +0x8e fp=0xc000313ab0 sp=0xc000313938 pc=0xae9c8e
github.com/hyperledger/fabric-ca/lib.(*Server).initDefaultCA(0xc0000dc160, 0x0, 0x0, 0xc000313bb8)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:372 +0xd9 fp=0xc000313b28 sp=0xc000313ab0 pc=0xb12939
github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc0000dc160, 0xdb8b00, 0x25, 0xc000313cd8)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:134 +0x30c fp=0xc000313c58 sp=0xc000313b28 pc=0xb108bc
github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc0000dc160, 0xc0000dc160, 0xc00009f900)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:173 +0x191 fp=0xc000313cf8 sp=0xc000313c58 pc=0xb10e51
main.(*ServerCmd).init.func3(0xc0004346c0, 0xc0000bc0f0, 0x0, 0x5, 0x0, 0x0)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xcd fp=0xc000313d80 sp=0xc000313cf8 pc=0xb41e6d
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc0004346c0, 0xc0000bc050, 0x5, 0x5, 0xc0004346c0, 0xc0000bc050)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3e2 fp=0xc000313e20 sp=0xc000313d80 pc=0xb39172
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc000434240, 0x5, 0xc000107f01, 0xc0004360f0)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2bc fp=0xc000313ee0 sp=0xc000313e20 pc=0xb3987c
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692
main.(*ServerCmd).Execute(...)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69
main.RunMain(0xc0000ba000, 0x7, 0x7, 0x8c000, 0xc00008a058)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb4 fp=0xc000313f28 sp=0xc000313ee0 pc=0xb40944
main.main()
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45 fp=0xc000313f60 sp=0xc000313f28 pc=0xb40865
runtime.main()
    /usr/local/go/src/runtime/proc.go:203 +0x21e fp=0xc000313fe0 sp=0xc000313f60 pc=0x43986e
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc000313fe8 sp=0xc000313fe0 pc=0x467001
2020/02/26 06:52:37 [DEBUG] Home directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:52:37 [INFO] Configuration file location: /etc/hyperledger/fabric-ca/crypto/fabric-ca-server-config.yaml
2020/02/26 06:52:37 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:52:37 [DEBUG] Set log level: 
2020/02/26 06:52:37 [INFO] Server Version: 2.0.0-snapshot-d766c5f
2020/02/26 06:52:37 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2020/02/26 06:52:37 [DEBUG] Making server filenames absolute
2020/02/26 06:52:37 [DEBUG] Initializing default CA in directory /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:52:37 [DEBUG] Init CA with home /etc/hyperledger/fabric-ca/crypto and config {Version:2.0.0 Cfg:{Identities:{PasswordAttempts:10 AllowRemove:false} Affiliations:{AllowRemove:false}} CA:{Name: Keyfile: Certfile:ca-cert.pem Chainfile:ca-chain.pem} Signing:0xc000500920 CSR:{CN:ca-tls Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[0.0.0.0] KeyRequest:0xc0004f6080 CA:0xc0004f6100 SerialNumber:} Registry:{MaxEnrollments:-1 Identities:[{ Name:**** Pass:**** Type:client Affiliation: MaxEnrollments:0 Attrs:map[hf.AffiliationMgr:1 hf.GenCRL:1 hf.IntermediateCA:1 hf.Registrar.Attributes:* hf.Registrar.DelegateRoles:* hf.Registrar.Roles:* hf.Revoker:1]  }]} Affiliations:map[org1:[department1 department2] org2:[department1]] LDAP:{ Enabled:false URL:ldap://****:****@<host>:<port>/<base> UserFilter:(uid=%s) GroupFilter:(memberUid=%s) Attribute:{[uid member] [{ }] map[groups:[{ }]]} TLS:{false [] { }}  } DB:{ Type:sqlite3 Datasource:fabric-ca-server.db TLS:{false [] { }}  } CSP:0xc0004f79e0 Client:<nil> Intermediate:{ParentServer:{ URL: CAName:  } TLS:{Enabled:false CertFiles:[] Client:{KeyFile: CertFile:}} Enrollment:{ Name: Secret:**** CAName: AttrReqs:[] Profile: Label: CSR:<nil> Type:x509  }} CRL:{Expiry:24h0m0s} Idemix:{IssuerPublicKeyfile: IssuerSecretKeyfile: RevocationPublicKeyfile: RevocationPrivateKeyfile: RHPoolSize:1000 NonceExpiration:15s NonceSweepInterval:15m}}
2020/02/26 06:52:37 [DEBUG] CA Home Directory: /etc/hyperledger/fabric-ca/crypto
2020/02/26 06:52:37 [DEBUG] Checking configuration file version '2.0.0' against server version: '2.0.0-snapshot-d766c5f'
2020/02/26 06:52:37 [DEBUG] Initializing BCCSP: &{ProviderName:PKCS11 SwOpts:<nil> Pkcs11Opts:0xc0004f4ba0}
2020/02/26 06:52:37 [DEBUG] Initializing BCCSP with PKCS11 options &{SecLevel:256 HashFamily:SHA2 Ephemeral:false Library:/usr/local/lib/softhsm/libsofthsm2.so Label:fabric Pin:12345678 SoftVerify:false Immutable:false}
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x15b36 pc=0x15b36]

runtime stack:
runtime.throw(0xdbee33, 0x2a)
    /usr/local/go/src/runtime/panic.go:774 +0x72
runtime.sigpanic()
    /usr/local/go/src/runtime/signal_unix.go:378 +0x47c

goroutine 1 [syscall]:
runtime.cgocall(0xbe28c0, 0xc0002e9030, 0xc0002e9080)
    /usr/local/go/src/runtime/cgocall.go:128 +0x5b fp=0xc0002e9000 sp=0xc0002e8fc8 pc=0x40b77b
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11._Cfunc_Initialize(0x14b3560, 0x0)
    _cgo_gotypes.go:1203 +0x4a fp=0xc0002e9030 sp=0xc0002e9000 pc=0x84555a
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11.(*Ctx).Initialize.func1(0xc000012200, 0xc000012200)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11/pkcs11.go:805 +0x5e fp=0xc0002e9070 sp=0xc0002e9030 pc=0x84f82e
github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11.(*Ctx).Initialize(0xc000012200, 0x25, 0xc000012200)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/miekg/pkcs11/pkcs11.go:805 +0x2b fp=0xc0002e9090 sp=0xc0002e9070 pc=0x847b5b
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11.loadLib(0xc00003e026, 0x25, 0xc0000380e2, 0x8, 0xc000038114, 0x6, 0xc0000ba820, 0x0, 0x0, 0xcb5f00, ...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11/pkcs11.go:35 +0x127 fp=0xc0002e9320 sp=0xc0002e9090 pc=0x85a017
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11.New(0x100, 0xc00003a7f0, 0x4, 0x0, 0xc00003e026, 0x25, 0xc000038114, 0x6, 0xc0000380e2, 0x8, ...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/pkcs11/impl.go:50 +0x173 fp=0xc0002e9428 sp=0xc0002e9320 pc=0x858183
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.(*PKCS11Factory).Get(0x14b0050, 0xc0004f79e0, 0xd95fd5, 0x2, 0xc0004f3168, 0x1)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11factory.go:41 +0x167 fp=0xc0002e9520 sp=0xc0002e9428 pc=0x860ca7
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.initBCCSP(0xed5820, 0x14b0050, 0xc0004f79e0, 0x0, 0x0)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/factory.go:84 +0x56 fp=0xc0002e95d8 sp=0xc0002e9520 pc=0x860096
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.setFactories(0xc0004f79e0, 0xc0000ba000, 0x2)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:74 +0x262 fp=0xc0002e9678 sp=0xc0002e95d8 pc=0x860612
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.InitFactories.func1()
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:39 +0x2a fp=0xc0002e96a0 sp=0xc0002e9678 pc=0x86115a
sync.(*Once).doSlow(0x14b0120, 0xc0002e9750)
    /usr/local/go/src/sync/once.go:66 +0xe3 fp=0xc0002e9740 sp=0xc0002e96a0 pc=0x475703
sync.(*Once).Do(...)
    /usr/local/go/src/sync/once.go:57
github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory.InitFactories(0xc0004f79e0, 0xdbe263, 0x2a)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:38 +0x81 fp=0xc0002e9770 sp=0xc0002e9740 pc=0x8603a1
github.com/hyperledger/fabric-ca/util.ConfigureBCCSP(0xc000157bb0, 0x0, 0x0, 0xc000100a00, 0x21, 0xc62a20, 0xc0002dacb0)
    /go/src/github.com/hyperledger/fabric-ca/util/configurebccsp.go:65 +0x276 fp=0xc0002e9830 sp=0xc0002e9770 pc=0x96d6d6
github.com/hyperledger/fabric-ca/util.InitBCCSP(0xc000157bb0, 0x0, 0x0, 0xc000100a00, 0x21, 0x2, 0x1492b40, 0x63, 0xde5e40)
    /go/src/github.com/hyperledger/fabric-ca/util/csp.go:54 +0x57 fp=0xc0002e9878 sp=0xc0002e9830 pc=0x96db67
github.com/hyperledger/fabric-ca/lib.(*CA).init(0xc0000dc1b0, 0x0, 0xbf8da34d60bc2837, 0x4950ee2)
    /go/src/github.com/hyperledger/fabric-ca/lib/ca.go:156 +0x15e fp=0xc0002e9938 sp=0xc0002e9878 pc=0xaea20e
github.com/hyperledger/fabric-ca/lib.initCA(0xc0000dc1b0, 0xc000100a00, 0x21, 0xc0001579a8, 0xc0000dc160, 0x0, 0xd5eb00, 0x4)
    /go/src/github.com/hyperledger/fabric-ca/lib/ca.go:131 +0x8e fp=0xc0002e9ab0 sp=0xc0002e9938 pc=0xae9c8e
github.com/hyperledger/fabric-ca/lib.(*Server).initDefaultCA(0xc0000dc160, 0x0, 0x0, 0xc0002e9bb8)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:372 +0xd9 fp=0xc0002e9b28 sp=0xc0002e9ab0 pc=0xb12939
github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc0000dc160, 0xdb8b00, 0x25, 0xc0002e9cd8)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:134 +0x30c fp=0xc0002e9c58 sp=0xc0002e9b28 pc=0xb108bc
github.com/hyperledger/fabric-ca/lib.(*Server).Start(0xc0000dc160, 0xc0000dc160, 0xc00009dd10)
    /go/src/github.com/hyperledger/fabric-ca/lib/server.go:173 +0x191 fp=0xc0002e9cf8 sp=0xc0002e9c58 pc=0xb10e51
main.(*ServerCmd).init.func3(0xc0000c5680, 0xc0000bac30, 0x0, 0x5, 0x0, 0x0)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:121 +0xcd fp=0xc0002e9d80 sp=0xc0002e9cf8 pc=0xb41e6d
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc0000c5680, 0xc0000babe0, 0x5, 0x5, 0xc0000c5680, 0xc0000babe0)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3e2 fp=0xc0002e9e20 sp=0xc0002e9d80 pc=0xb39172
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0000c5200, 0x5, 0xc000103f01, 0xc0000baaf0)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2bc fp=0xc0002e9ee0 sp=0xc0002e9e20 pc=0xb3987c
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(...)
    /go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692
main.(*ServerCmd).Execute(...)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69
main.RunMain(0xc0000b8000, 0x7, 0x7, 0x8a000, 0xc000088058)
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb4 fp=0xc0002e9f28 sp=0xc0002e9ee0 pc=0xb40944
main.main()
    /go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45 fp=0xc0002e9f60 sp=0xc0002e9f28 pc=0xb40865
runtime.main()
    /usr/local/go/src/runtime/proc.go:203 +0x21e fp=0xc0002e9fe0 sp=0xc0002e9f60 pc=0x43986e
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc0002e9fe8 sp=0xc0002e9fe0 pc=0x467001

Я использую последнюю версию Softhsm (2.5.1), скомпилированную с ботаном из исходного кода. Fabri c и fabri c -ca версия (2.0.0).

Запуск fabric-ca-server start -d -b tls-ca-admin:tls-ca-adminpw --port 7052 непосредственно в терминале без docker не приводит к ошибкам.

Что может быть возможной причиной этого? Это проблема с fabri c -ca с softthsm или с компиляцией softhsm?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...