Hi, thanks for feedback. The goal is to have a binary to generate self signed certificate in an instant.
That i also want to provide installers, is because (its my sauce) I believe there s a world beyond go community to whom go wonders can be helpful this is an easy goal to reach because go is super easy to cross compile, and i have those tools yet. cherries on the cake. Now, for a pure go community point of view, i think its better to implement something like https://godoc.org/golang.org/x/crypto/acme/autocert A tls config with a certificate provider which would generates those keys/certs in memory (probably?) and make it as easy as this to setup a local development environment wih ssl support, func letsEncryptServe(addr string, dns string, cache string, router http. Handler) { cacheDir := autocert.DirCache(cache) m := autocert.Manager{ Prompt: autocert.AcceptTOS, HostPolicy: autocert.HostWhitelist(dns), Cache: cacheDir, } // configure the https server ssrv := &http.Server{ Handler: router, Addr: addr, WriteTimeout: 15 * time.Second, ReadTimeout: 15 * time.Second, TLSConfig: &tls.Config{GetCertificate: m.GetCertificate}, } fmt.Printf("Server running on %v\n", ssrv.Addr) // start the ssl server log.Fatal(ssrv.ListenAndServeTLS("","")) } Maybe that exists yet and i missed it ? Back on my original question, its ok if i copy paste the code into a specific module with its appropriate credits ? Given the quick red i gave it, there s really not much to change to this code, it if works already. On Thursday, November 3, 2016 at 1:54:44 PM UTC+1, Jan Mercl wrote: > > On Thu, Nov 3, 2016 at 1:40 PM <mhh...@gmail.com <javascript:>> wrote: > > > to provide support for got get, windows/debian/rpm installers ? > > I probably do not understand the goal correctly, but: If the user can do > `go get` then he has the go tool installed. That means he has Go installed. > That means he does not have to go get the crypto/tls package as it is > already sitting in his $GOROOT/src/crypto/tls. > > -- > > -j > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.