支持 私有自签证书

This commit is contained in:
bjdgyc
2024-04-22 14:40:03 +08:00
parent 26483533a9
commit 5e804a3483
5 changed files with 29 additions and 14 deletions

View File

@@ -111,12 +111,6 @@ func StartAdmin() {
selectedCipherSuites = append(selectedCipherSuites, s.ID)
}
if tlscert, _, err := dbdata.ParseCert(); err != nil {
base.Fatal("证书加载失败", err)
} else {
dbdata.LoadCertificate(tlscert)
}
// 设置tls信息
tlsConfig := &tls.Config{
NextProtos: []string{"http/1.1"},