feat:根据SNI返回SSL证书

This commit is contained in:
deny
2023-04-17 11:07:39 +00:00
parent 8798de0d6d
commit 609a893feb
4 changed files with 74 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ func CustomCert(w http.ResponseWriter, r *http.Request) {
RespError(w, RespInternalErr, fmt.Sprintf("证书不合法,请重新上传:%v", err))
return
} else {
dbdata.TLSCert = tlscert
dbdata.LoadCertificate(tlscert)
}
RespSucess(w, "上传成功")
}