设置bccsp类型的MSP时,BYFN.sh失败,并出现错误

I am trying the first-network demo on OSX and am getting the following error. I have tried searching for an answer. I did found one here but it appears that is for ubuntu. All the commands didn't work on OSX. Anyone with a solution on OSX? Thanks!

2018-11-02 03:13:45.696 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: could not initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(): Could not initialize BCCSP PKCS11 [Failed to initialize software key store: An invalid KeyStore path provided. Path cannot be an empty string.] !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario ==========

The error message is not very specific.

In my case, I was trying to connect to a peer from my fabric-tools container, and there was a TLS enabled mismatch (fabric-tools has TLS enabled, and fabric-peer had TLS disabled). Aligning the TLS configuration made the error go away.

Might help someone out...