mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
bug fix
This commit is contained in:
parent
953f943e01
commit
27c4b82d54
22 changed files with 97 additions and 85 deletions
|
@ -15,30 +15,6 @@ import (
|
|||
func CertInfo(c *gin.Context) {
|
||||
domain := c.Param("domain")
|
||||
|
||||
/*sslCertificatePath := tool.GetNginxConfPath("ssl/" + domain +"/fullchain.cer")
|
||||
|
||||
content, err := ioutil.ReadFile(sslCertificatePath)
|
||||
|
||||
if err != nil {
|
||||
ErrorHandler(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
certDERBlock, _ := pem.Decode(content)
|
||||
|
||||
if certDERBlock == nil {
|
||||
ErrorHandler(c, errors.New("pem decode error"))
|
||||
return
|
||||
}
|
||||
|
||||
var key *x509.Certificate
|
||||
key, err = x509.ParseCertificate(certDERBlock.Bytes)
|
||||
|
||||
if err != nil {
|
||||
ErrorHandler(c, err)
|
||||
return
|
||||
}*/
|
||||
|
||||
ts := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue