Skip to content

Commit

Permalink
fixes cert check for expired certs
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Jan 19, 2023
1 parent fbed97f commit 00b948e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fritzutils/fritzutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func CheckCertValidity(url *url.URL, domain string, minValidity time.Duration) (
panic("URL cannot be parsed to host and port" + err.Error())
}

conn, err := tls.Dial("tcp", host+":"+port, nil)
conn, err := tls.Dial("tcp", host+":"+port, &tls.Config{InsecureSkipVerify: true})
if err != nil {
panic("Server doesn't support SSL certificate err: " + err.Error())
}
Expand Down

0 comments on commit 00b948e

Please sign in to comment.