Skip to content

net/smtp: SendMail() TLS don't fail on self-signed certs #6991

Description

@gopherbot

by info@icod.de:

What steps will reproduce the problem?
1. http://play.golang.org/p/kqgvru-Lh5
I'm using a self-signed cert on icod.de

What is the expected output?
Not x509: certificate signed by unknown authority

What do you see instead?
x509: certificate signed by unknown authority (duh)

Which compiler are you using (5g, 6g, 8g, gccgo)?
go run email.go, archlinux

Which operating system are you using?
archlinux

Which version are you using?  (run 'go version')
go version go1.2 linux/amd64

Please provide any additional information below.
Postfix isn't pick about who to trust, neither should Go be since why use Go when it
fails but Postfix does the job without complaining?
Imho this is a disadvantage for Go and it should be optional if you prefer to connect to
CA approved hosts only or not. Theory and reality. I don't think there's a whole lot of
people buying extra certs just for a MTA given the price, especially if you can just
sign it yourself and there really is no technical benefit in using an approved CA to
sign your cert.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions