I think rsc's comment in the issue says it all:
> I don't think we have committed to writing a cert generation tool appropriate for production use. The generate_cert.go program is a simple program for writing tests.
Typically, you would use openssl to generate production certs. You could use the functionality in `crypto/tls` to write your own tool, though.
And if you want to distribute a binary, 'go build `locate generate_cert.go`' (taking into account the caveat about more than one file with that name mentioned above.)
My feeling is that the documentation in ListenAndServeTLS (which is an inline comment in example code) is meant more as a helpful hint on how to generate a quick and dirty certificate for testing.
-tim