-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Test net standard 2.0 #108
base: main
Are you sure you want to change the base?
Conversation
ddubuc
commented
Oct 26, 2022
•
edited
Loading
edited
- Works with net 6.0
- Check if works with client 4.7.2 with no TLS
- Check if works with client 4.7.2 with TLS
- Check if works with client 4.7.2 with mTLS
innerHttpClientHandler.ClientCertificates.Add(tmpCert); | ||
innerHttpClientHandler.ClientCertificateOption = ClientCertificateOption.Manual; | ||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; | ||
innerHttpClientHandler.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls; |
Check failure
Code scanning / SonarCloud
Weak SSL/TLS protocols should not be used
innerHttpClientHandler.ClientCertificates.Add(tmpCert); | ||
innerHttpClientHandler.ClientCertificateOption = ClientCertificateOption.Manual; | ||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; | ||
innerHttpClientHandler.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls; |
Check failure
Code scanning / SonarCloud
Weak SSL/TLS protocols should not be used
cert.Dispose(); | ||
innerHttpClientHandler.ClientCertificates.Add(tmpCert); | ||
innerHttpClientHandler.ClientCertificateOption = ClientCertificateOption.Manual; | ||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; |
Check failure
Code scanning / SonarCloud
Weak SSL/TLS protocols should not be used
cert.Dispose(); | ||
innerHttpClientHandler.ClientCertificates.Add(tmpCert); | ||
innerHttpClientHandler.ClientCertificateOption = ClientCertificateOption.Manual; | ||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; |
Check failure
Code scanning / SonarCloud
Weak SSL/TLS protocols should not be used
|
||
if (!sslValidation) | ||
{ | ||
innerHttpClientHandler.ServerCertificateValidationCallback += (httpRequestMessage, |
Check failure
Code scanning / SonarCloud
Server certificates should be verified during SSL/TLS connections