Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动项目报错handshake failed #71

Open
huahuayu opened this issue Jun 9, 2020 · 1 comment
Open

启动项目报错handshake failed #71

huahuayu opened this issue Jun 9, 2020 · 1 comment

Comments

@huahuayu
Copy link

huahuayu commented Jun 9, 2020

问题描述

我按照readme里面的指引,首先复制了sdk的三个证书文件到resource目录,然后修改了application.yml配置

启动项目报handshake failed错误,message: not an SSL/TLS record

image

版本信息

fisco 2.4.0
国密版

重现步骤

** step1: 部署链,使用sdk和链交互**
全过程步骤记录

step2: 配置示例springboot sdk项目
克隆本项目,并将控制台的证书文件拷贝到resource文件夹

image

修改application.yml配置

encrypt-type: # 0:standard, 1:guomi
  encrypt-type: 1

group-channel-connections-config:
  caCert: classpath:ca.crt
  sslCert: classpath:sdk.crt
  sslKey: classpath:sdk.key
  all-channel-connections:
    - group-id: 1 #group ID
      connections-str:
        - 192.168.10.239:9025 # node listen_ip:channel_listen_port
    - group-id: 2
      connections-str:
        - 192.168.10.239:9026 # node listen_ip:channel_listen_port
    - group-id: 3
      connections-str:
        - 192.168.10.239:9027 # node listen_ip:channel_listen_port

channel-service:
  group-id: 1 # The specified group to which the SDK connects
  agency-name: agencyB # agency name

accounts:
  pem-file: 0xcdcce60801c0a2e6bb534322c32ae528b9dec8d2.pem
  p12-file: 0x98333491efac02f8ce109b0c499074d47e7779a6.p12
  password: 123456

其中192.168.10.239:9025,9026,9027就是三个群组节点的channel_listen_port

另外多问一句:accounts是干嘛用的?

step3: 启动项目,报错
handshake failed错误,message: not an SSL/TLS record

详细错误日志

@huahuayu
Copy link
Author

huahuayu commented Jun 9, 2020

报错原因找到了,因为channel_listen_port被nginx反向代理了,不使用nginx代理即可(tls代理设置比较复杂,不是简单的http代理)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant