Many thanks Miguel! On Thursday, 13 September 2018 13:33:44 UTC+3, Miguel Angel Rivera Notararigo wrote: > > Hi, you could use a custom tls.Config, see this example ( > https://golang.org/pkg/crypto/tls/#example_X509KeyPair_httpServer) > > On Thu, Sep 13, 2018, 03:49 Houzuo Guo <guoh...@gmail.com <javascript:>> > wrote: > >> Hello fellow Gophers. >> >> I'm programming an HTTPS server and PEM-encoded certificate data is given >> in bytes rather than file paths, additionally the data may not touch host >> file system. >> >> However, the public functions of http.Server only accept certificate data >> in files, and with recently introduced HTTP v2 support several private >> initialisers are invoked in ServeTLS(), making it quite difficult to >> re-implement that particular function. >> >> Has anyone got a suggestion? >> >> Thanks. >> >> Kind regards, >> Howard >> >> -- >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> >
-- 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.