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:
bradfitz
changed the title
[feature] setting GetConfigForClient ignore ListenAndServeTLS arguments
net/http: allow ListenAndServeTLS to omit PEM file values if TLSConfig.GetConfigForClient set
May 7, 2019
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: