Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use non-nil certificate in GetClientCertificate
The docs for `GetClientCertificate` specifies: GetClientCertificate must return a non-nil Certificate. If Certificate.Certificate is empty then no certificate will be sent to the server. If a nil certificate is sent when the server requests a client certificate, the client will return an error. Instead, return an empty certificate from GetClientCertificate and the server may choose to how to handle the lack of a client certificate. This is needed primarily for when the server is using RequestClientCert, which requests a certificate, but does not require the client to send one. Signed-off-by: Chance Zibolski <[email protected]>
- Loading branch information