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

[ 问题咨询 ]goinception报证书问题 #1388

Closed
TottyAndBaty opened this issue Feb 16, 2022 · 2 comments
Closed

[ 问题咨询 ]goinception报证书问题 #1388

TottyAndBaty opened this issue Feb 16, 2022 · 2 comments
Labels
question Further information is requested

Comments

@TottyAndBaty
Copy link

TottyAndBaty commented Feb 16, 2022

问题描述

我的实例是通过隧道连接。

检查了inception下的config.toml 和inc.cnf,数据库配置都一致,
goInception配置 设置里面测试连接正常

sql检测的时候报这样的问题,

time="2022/02/16 18:18:43.500" level=error msg="con:3 con:3 dial tcp 127.0.0.1:39690: connect: connection refused" file=session_inception.go func=parseOptions line=2123

看了session_inception.go代码2123

rootCertPool := x509.NewCertPool()
pem, err := ioutil.ReadFile(s.opt.sslCA)
if err != nil {
return "", fmt.Errorf("con:%d %v", s.sessionVars.ConnectionID, err)
}
if ok := rootCertPool.AppendCertsFromPEM(pem); !ok {
return "", fmt.Errorf("con:%d Failed to append PEM.", s.sessionVars.ConnectionID)
}

看样子这里涉及到证书了。。。这个就不知道怎么配置了。。。。

版本信息

  • 应用版本/分支:最新版
  • 部署方式:Docker
@TottyAndBaty TottyAndBaty added the question Further information is requested label Feb 16, 2022
@jyworker
Copy link

同样的问题,不知如何解决

@hhyo
Copy link
Owner

hhyo commented May 21, 2022

#1362

@hhyo hhyo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants