mirror of
https://github.com/wneessen/go-mail.git
synced 2024-10-06 02:05:57 +02:00
19 lines
298 B
Go
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
|
|
}
|