creating certs in the proper time

master
LowEel 2021-07-31 15:00:12 +02:00
parent 6fb3d402e5
commit 90b8ece611
1 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ func init() {
}
if os.Getenv("USETLS") == "true" {
log.Println("Preparing TLS Keys")
ZMakecert()
ZangSmtpServer.ConfigureTLS(CrtFile, KeyFile)
ZangSmtpServer.TLSListener = false
ZangSmtpServer.TLSRequired = true
@ -49,7 +50,7 @@ func init() {
log.Println("WARNING: NOT Using TLS")
}
ZMakecert()
log.Println("Ready to start the server.")