func ListenAndServeTLS(addr string, certFile string, keyFile string, handler Handler) error
Above is the function that I call to start an https server in Golang. It works without any problem. However, as I have more deployments, I don't want to put my key files everywhere. So I am thinking to let the program download the key file and cert file from a centralized place. If there would be a similar function receiving []byte
as opposed to string
, it would be easy for me to do that. But it seems I don't see such function in the documentations.