net/http: allow ListenAndServeTLS to omit PEM file values if TLSConfig.GetConfigForClient set #31855
Comments
Change https://golang.org/cl/175457 mentions this issue: |
What config should be used if the client doesn't send a hello? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I set GetConfigForClient and start the server using ListenAndServeTLS the arguments of ListenAndServeTLS, the server certificate and its key are lneeded to be given and they are also loaded. I have set the server certificate and its key in the configuration TLSConfig served by GetConfigForClient before. So using GetConfigForClient ListenAndServeTLS should ignore its arguments and they should also be optional.
The text was updated successfully, but these errors were encountered: