Skip to content

Instantly share code, notes, and snippets.

2020/08/31 14:52:39 [INFO] Created default configuration file at /Users/sjain68/phf-solutions/fabric-ca-lesson/biotor/fabric-ca-server-config.yaml
2020/08/31 14:52:39 [INFO] Server Version: 1.4.6
2020/08/31 14:52:39 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2020/08/31 14:52:39 [WARNING] &{69 The specified CA certificate file /Users/sjain68/phf-solutions/fabric-ca-lesson/biotor/ca-cert.pem does not exist}
2020/08/31 14:52:39 [INFO] generating key: &{A:ecdsa S:256}
2020/08/31 14:52:39 [INFO] encoded CSR
2020/08/31 14:52:39 [INFO] signed certificate with serial number 209450895447008803616294289922809196760752025367
2020/08/31 14:52:39 [INFO] The CA key and certificate were generated for CA
2020/08/31 14:52:39 [INFO] The key was stored by BCCSP provider 'SW'
2020/08/31 14:52:39 [INFO] The certificate is at: /Users/sjain68/phf-solutions/fabric-ca-lesson/biotor/ca-cert.pem
(dlv) stack
0 0x000000000475f3cc in github.com/hyperledger/fabric-ca/util.ImportBCCSPKeyFromPEM
at /Users/sjain68/go/src/github.com/hyperledger/fabric-ca/util/csp.go:241
1 0x000000000475cf03 in github.com/hyperledger/fabric-ca/util.BccspBackedSigner
at /Users/sjain68/go/src/github.com/hyperledger/fabric-ca/util/csp.go:97
2 0x00000000049aa5da in github.com/hyperledger/fabric-ca/lib.(*CA).initEnrollmentSigner
at /Users/sjain68/go/src/github.com/hyperledger/fabric-ca/lib/ca.go:745
3 0x00000000049a35e1 in github.com/hyperledger/fabric-ca/lib.(*CA).init
at /Users/sjain68/go/src/github.com/hyperledger/fabric-ca/lib/ca.go:182
4 0x00000000049a2cd5 in github.com/hyperledger/fabric-ca/lib.initCA
2020/08/10 15:24:44 [INFO] Created default configuration file at /Users/sjain68/phf-solutions/fabric-ca-lesson/drills/one/fabric-ca-server/fabric-ca-server-config.yaml
2020/08/10 15:24:44 [INFO] Starting server in home directory: /Users/sjain68/phf-solutions/fabric-ca-lesson/drills/one/fabric-ca-server
2020/08/10 15:24:44 [INFO] Server Version: 1.4.6
2020/08/10 15:24:44 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2020/08/10 15:24:44 [WARNING] &{69 The specified CA certificate file /Users/sjain68/phf-solutions/fabric-ca-lesson/drills/one/fabric-ca-server/ca-cert.pem does not exist}
2020/08/10 15:24:44 [INFO] generating key: &{A:ecdsa S:256}
2020/08/10 15:24:44 [INFO] encoded CSR
2020/08/10 15:24:44 [INFO] signed certificate with serial number 492325804084573968794727701701241832120371543887
2020/08/10 15:24:44 [INFO] The CA key and certificate were generated for CA
2020/08/10 15:24:44 [INFO] The key was stored by BCCSP provider 'SW'
2020-07-28 10:23:38.762 PDT [policies] SignatureSetToValidIdentities -> WARN 03c principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority) for identity 0a07584d65644d53501292062d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d494943467a43434162366741774942416749524149756d314352516b417655795468376f677a5554777777436759494b6f5a497a6a3045417749775a7a454c0a4d416b474131554542684d4356564d78457a415242674e5642416754436b4e6862476c6d62334a7561574578466a415542674e564241635444564e68626942470a636d467559326c7a59323878457a415242674e5642416f54436d4a70623352766369356a62323078466a415542674e5642414d5444574e684c6d4a70623352760a6369356a623230774868634e4d6a41774e4445324d546b774e5441775768634e4d7a41774e4445304d546b774e544177576a426c4d51737743515944565151470a45774a56557a45544d4245474131554543424d4b5132467361575a76636d3570595445574d4251474131554542784d4e5532467549455a795957356a61584e6a0a627a454f4d4177474131554543784d4659575274615734784754415842674e5642414d4d4545466b62
WITSC02X6385JGH:data-privacy-lesson sjain68$ ./getBlock.sh 64
2020-07-10 13:27:06.499 PDT [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2020-07-10 13:27:06.501 PDT [cli.common] readBlock -> INFO 002 Received block: 64
{
"data": {
"data": [
{
"payload": {
"data": {
"actions": [
$ docker inspect hyperledger/fabric-orderer:2.0.1
[
{
"Id": "sha256:92bd220edcdd1bde6001917d801163a0f64629bc1e8d34c1333d91952aeaf7b8",
"RepoTags": [
"hyperledger/fabric-orderer:2.0.1"
],
"RepoDigests": [
"hyperledger/fabric-orderer@sha256:81383a2f9b5e867f98afc3a22b5c2dce8215870f61742bed9f4a598397fa9c30"
],
$ docker inspect orderer0.biotor.com
[
{
"Id": "52bd060e801af57fa61e33c31cfd5035eda3d67bf536faffa7151b3074775cfb",
"Created": "2020-06-16T23:23:59.157877896Z",
"Path": "orderer",
"Args": [],
"State": {
"Status": "running",
"Running": true,
jain68$ docker logs -f orderer0.biotor.com
2020-06-16 23:24:01.815 UTC [localconfig] completeInitialization -> INFO 001 Kafka.Version unset, setting to 0.10.2.0
2020-06-16 23:24:01.815 UTC [orderer.common.server] prettyPrintStruct -> INFO 002 Orderer config values:
General.ListenAddress = "0.0.0.0"
General.ListenPort = 7050
General.TLS.Enabled = false
General.TLS.PrivateKey = "/etc/hyperledger/fabric/tls/server.key"
General.TLS.Certificate = "/etc/hyperledger/fabric/tls/server.crt"
General.TLS.RootCAs = [/etc/hyperledger/fabric/tls/ca.crt]
General.TLS.ClientAuthRequired = false
2020-06-16 23:52:52.088 UTC [nodeCmd] serve -> INFO 001 Starting peer:
Version: 2.0.1
Commit SHA: 1cfa5da
Go version: go1.13.4
OS/Arch: linux/amd64
Chaincode:
Base Docker Namespace: hyperledger
Base Docker Label: org.hyperledger.fabric
Docker Namespace: hyperledger
2020-06-16 23:52:52.156 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 172.18.0.11:8055
$ npm i
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> pkcs11js@1.0.21 install /Users/sjain68/go/src/github.com/siddjain/phf-solutions/client-application/node_modules/pkcs11js
> node-gyp rebuild
CXX(target) Release/obj.target/pkcs11/src/main.o
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix