background:
In the deployment of fabric, three local virtual machine nodes, a remote server node, the corresponding login user name has been cleaned up, the certificate error at startup:
gds@gds-virtualbox:~/goworkspace/fabric_deploy/xingye_test/vp1$./startpeer.sh 2017/08/02 09:49:56 setting number of Procs To-1, was 1 09:49:57.340675 [main] main-> INFO 001 User defined config file path:/home/gds/goworkspace/fabric_ deploy/xingye_test/vp1/09:49:57.343540 [Nodecmd] serve-> INFO 002 Security enabled Status:true 09:49:57.344106 [node CMD] Serve-> info 004 privacy enabled Status:false 09:49:57.344807 [db] Open-> INFO 005 Setting rocksdb Esize to 10485760 09:49:57.345399 [db] Open-> INFO 006 Setting rocksdb keeplogfilenum to 09:49:57.343998 [eventhub_ Producer] Start-> Info 003 Event Processor started 09:49:57.373895 [crypto] registervalidator-> INFO 007 Registeri
Ng Validator [TEST_VP1] with name [TEST_VP1] ... 09:49:57.835920 [Crypto] Errorf-> erro 008 [VALIDATOR.TEST_VP1] Failed checking signing enrollment for SIG Ning: [x509:certificate has expired or is not yet valid] 09:49:57.836090 [crypto] Errorf-> Erro 009 [VALIDATOR.TEST_VP1] Failed getting enrollment certificate [ID=TEST_VP1]: [x509:certificate has expired or are not yet V Alid] 09:49:57.836114 [crypto] Errorf-> erro 00a [VALIDATOR.TEST_VP1] Failed retrieving enrollment data [X509:certifi
Cate has expired or is not yet valid]. 09:49:57.836131 [Crypto] Errorf-> erro 00b [VALIDATOR.TEST_VP1] Failed registering node crypto engine [X509:certifica
TE has expired or is not yet valid]. 09:49:57.836231 [Crypto] Errorf-> erro 00c [VALIDATOR.TEST_VP1] Failed registering [peer]: [TEST_VP1 Has expired or is not yet valid] 09:49:57.836243 [crypto] Errorf-> erro 00d [VALIDATOR.TEST_VP1] Failed registering [ TEST_VP1]: [x509:certificate has expired or are not yet valid] 09:49:57.836252 [crypto] registervalidator-> erro 00e F
ailed registering validator [TEST_VP1] with name [TEST_VP1] [x509:certificate has expired] or are not yet valid]. Error:x509:certificate has expired or is not yet valid
Solution:
This problem is basically due to the fact that the certificate has expired, to see if the time of the virtual machine and the remote server is synchronized:
Date
If the time is inconsistent, execute:
Ntpdate cn.pool.ntp.org