fix: https issues

This commit is contained in:
2024-01-09 15:57:45 +08:00
parent 511413e614
commit f4796e579c
15 changed files with 145 additions and 177 deletions

View File

@@ -94,9 +94,10 @@ func HttpListenConfigTLS(addr, caFile, certFile, keyFile string, router http.Han
// 创建自定义的TLS配置
tlsConfig := &tls.Config{
MinVersion: 1,
MinVersion: tls.VersionTLS10,
MaxVersion: tls.VersionTLS13,
ClientCAs: caCertPool,
ClientAuth: tls.RequireAndVerifyClientCert,
//ClientAuth: tls.RequireAndVerifyClientCert,
}
// 创建HTTP服务器