在启用TLS的情况下实施Hyperledger Fabric,也可以在没有TLS的情况下工作?

时间:2019-10-13 09:07:22

标签: hyperledger-fabric blockchain hyperledger

  

我已经在我的Fabric实施中启用了TLS,但仍然可以   在没有TLS的情况下使用!!

网络已启用TLS。当我使用(--tls true --cafile“文件路径”)选项查询分类帐时,它可以正常工作,但是当我使用(--tls true --cafile“文件路径”)选项进行查询时,它也显示错误,但之后,它显示“状态:200”并包含查询的数据和证书!!!:

Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response:<status:200 payload:"[{\"Key\":\"CAR0\", \"Record\":{\"make\":\"Toyota\",\"model\":\"Prius\",\"colour\":\"blue\",\"owner\":\"Tomoko\"}},{\"Key\":\"CAR1\", \"Record\":{\"make\":\"Ford\",\"model\":\"Mustang\",\"colour\":\"red\",\"owner\":\"Brad\"}},{\"Key\":\"CAR2\", \"Record\":{\"make\":\"Hyundai\",\"model\":\"Tucson\",\"colour\":\"green\",\"owner\":\"Jin Soo\"}},{\"Key\":\"CAR3\", \"Record\":{\"make\":\"Volkswagen\",\"model\":\"Passat\",\"colour\":\"yellow\",\"owner\":\"Max\"}},{\"Key\":\"CAR4\", \"Record\":{\"make\":\"Tesla\",\"model\":\"S\",\"colour\":\"black\",\"owner\":\"Adriana\"}},{\"Key\":\"CAR5\", \"Record\":{\"make\":\"Peugeot\",\"model\":\"205\",\"colour\":\"purple\",\"owner\":\"Michel\"}},{\"Key\":\"CAR6\", \"Record\":{\"make\":\"Chery\",\"model\":\"S22L\",\"colour\":\"white\",\"owner\":\"Aarav\"}},{\"Key\":\"CAR7\", \"Record\":{\"make\":\"Fiat\",\"model\":\"Punto\",\"colour\":\"violet\",\"owner\":\"Pari\"}},{\"Key\":\"CAR8\", \"Record\":{\"make\":\"Tata\",\"model\":\"Nano\",\"colour\":\"indigo\",\"owner\":\"Valeria\"}},{\"Key\":\"CAR9\", \"Record\":{\"make\":\"Holden\",\"model\":\"Barina\",\"colour\":\"brown\",\"owner\":\"Shotaro\"}}]" > payload:"\n \233D\031\273FGX\321\340/\004\324\256\234i\311\242\036(\321\233= 2\206\020\025\363;\262Mc\022\351\010\n\263\001\022\230\001\n\006fabcar\022\215\001\022\212\001\n\004CAR0\022\006CAR999\030\001\"x\n\n\n\004CAR0\022\002\010\003\n\n\n\004CAR1\022\002\010\003\n\n\n\004CAR2\022\002\010\003\n\n\n\004CAR3\022\002\010\003\n\n\n\004CAR4\022\002\010\003\n\n\n\004CAR5\022\002\010\003\n\n\n\004CAR6\022\002\010\003\n\n\n\004CAR7\022\002\010\003\n\n\n\004CAR8\022\002\010\003\n\n\n\004CAR9\022\002\010\003\022\026\n\004lscc\022\016\n\014\n\006fabcar\022\002\010\001\032\241\007\010\310\001\032\233\007[{\"Key\":\"CAR0\", \"Record\":{\"make\":\"Toyota\",\"model\":\"Prius\",\"colour\":\"blue\",\"owner\":\"Tomoko\"}},{\"Key\":\"CAR1\", \"Record\":{\"make\":\"Ford\",\"model\":\"Mustang\",\"colour\":\"red\",\"owner\":\"Brad\"}},{\"Key\":\"CAR2\", \"Record\":{\"make\":\"Hyundai\",\"model\":\"Tucson\",\"colour\":\"green\",\"owner\":\"Jin Soo\"}},{\"Key\":\"CAR3\", \"Record\":{\"make\":\"Volkswagen\",\"model\":\"Passat\",\"colour\":\"yellow\",\"owner\":\"Max\"}},{\"Key\":\"CAR4\", \"Record\":{\"make\":\"Tesla\",\"model\":\"S\",\"colour\":\"black\",\"owner\":\"Adriana\"}},{\"Key\":\"CAR5\", \"Record\":{\"make\":\"Peugeot\",\"model\":\"205\",\"colour\":\"purple\",\"owner\":\"Michel\"}},{\"Key\":\"CAR6\", \"Record\":{\"make\":\"Chery\",\"model\":\"S22L\",\"colour\":\"white\",\"owner\":\"Aarav\"}},{\"Key\":\"CAR7\", \"Record\":{\"make\":\"Fiat\",\"model\":\"Punto\",\"colour\":\"violet\",\"owner\":\"Pari\"}},{\"Key\":\"CAR8\", \"Record\":{\"make\":\"Tata\",\"model\":\"Nano\",\"colour\":\"indigo\",\"owner\":\"Valeria\"}},{\"Key\":\"CAR9\", \"Record\":{\"make\":\"Holden\",\"model\":\"Barina\",\"colour\":\"brown\",\"owner\":\"Shotaro\"}}]\"\r\022\006fabcar\032\0031.0" endorsement:<endorser:"\n\007Org2MSP\022\246\006-----BEGIN CERTIFICATE-----\nMIICJzCCAc6gAwIBAgIQNt6ipT8t8uI270UqogU2PDAKBggqhkjOPQQDAjBzMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu\nb3JnMi5leGFtcGxlLmNvbTAeFw0xOTA3MTgwMjAyMDBaFw0yOTA3MTUwMjAyMDBa\nMGoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T\nYW4gRnJhbmNpc2NvMQ0wCwYDVQQLEwRwZWVyMR8wHQYDVQQDExZwZWVyMC5vcmcy\nLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETEK+ebGCoIyO\nbAllygaCJyJarNl3JfgNS+XmjaiLrGglGTTf7lMKYO1qWSvUBz8WqLulShuhE8SQ\nRglFrqsRX6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0j\nBCQwIoAgGxsBgDB0zkmbzU9yqXaA/NRE74CmmXrQ7L+CqyltfUkwCgYIKoZIzj0E\nAwIDRwAwRAIgZGUOMYic/qthij3uRJTFy5Kx5CRIawbcReQIITW1mxcCIDmS6WUK\nawDOk5svkb8joIJlKJwfm70AE8+TDtkDA4gQ\n-----END CERTIFICATE-----\n" signature:"0D\002 Q\305\361\246\352\201\213\204\033\226lmq\253\000\243\273!\310\3524on\321\234,\266\276'F\217M\002 \032\275W\250\372\035\270k+^\276\255@4+\340N\343\376\343\225N\024x\232\372\372\210}\305\240*" >

1 个答案:

答案 0 :(得分:1)

启用或禁用TLS。没有TLS和TLS都不支持的混合模式。