We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version 1.14.2
1.14.2
go env
$ go env amd64/linux
I need to new a https server with encrypted private key file, but ListenAndServeTLS only support filepath parameter.
With much work to do which same with the function ListenAndServeTLS(certFile, keyFile string), the only differnece is the parameter type.
ListenAndServeTLS(certBytes, keyBytes []bytes)
The text was updated successfully, but these errors were encountered:
net/http Server has a TLSConfig member for which you can specify Certificates or a GetCertificates funtion.
Please also see https://github.com/golang/go/wiki/Questions .
Sorry, something went wrong.
TLSConfig works,thanks!
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
1.14.2
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I need to new a https server with encrypted private key file, but ListenAndServeTLS only support filepath parameter.
With much work to do which same with the function ListenAndServeTLS(certFile, keyFile string), the only differnece is the parameter type.
What did you expect to see?
ListenAndServeTLS(certBytes, keyBytes []bytes)
What did you see instead?
The text was updated successfully, but these errors were encountered: