go-mail/util_test.go
2024-09-26 16:43:58 +02:00

19 lines
298 B
Go

package mail
import (
"crypto/tls"
)
const (
certFilePath = "dummy-cert.pem"
keyFilePath = "dummy=key.pem"
)
func getDummyCertificate() (*tls.Certificate, error) {
keyPair, err := tls.LoadX509KeyPair(certFilePath, keyFilePath)
if err != nil {
return nil, err
}
return &keyPair, nil
}