https://github.com/FFMG/myoddweb.ssltest
Simple c# App to test supported ssl/tls version
https://github.com/FFMG/myoddweb.ssltest
csharp ssl ssl-certificates tls tls11 tls12 tls13 transport-layer-security
Last synced: about 2 months ago
JSON representation
Simple c# App to test supported ssl/tls version
- Host: GitHub
- URL: https://github.com/FFMG/myoddweb.ssltest
- Owner: FFMG
- License: mit
- Created: 2020-07-18T09:05:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T13:38:19.000Z (almost 5 years ago)
- Last Synced: 2024-10-23T20:11:16.513Z (6 months ago)
- Topics: csharp, ssl, ssl-certificates, tls, tls11, tls12, tls13, transport-layer-security
- Language: C#
- Homepage: http://www,myoddweb.com
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myoddweb.ssltest
Simple c# App to test supported ssl/tls versionFor example if you want to check the supported versions of google
`myoddweb.ssltest.exe --host google.com --port 443`

# SslTester Class
The SslTester class is where the test is done
`SslTester(Uri uri)` the constructor, pass the uri being tested.
Then you can test for whatever protocol you want to double check.
```csharp
[Flags]
public enum SslProtocols
{
None = 0,
Ssl2 = 12, // 0x0000000C
Ssl3 = 48, // 0x00000030
Tls = 192, // 0x000000C0
Tls11 = 768, // 0x00000300
Tls12 = 3072, // 0x00000C00
Tls13 = 12288, // 0x00003000
Default = Tls | Ssl3, // 0x000000F0
}
```
See the [.NET code](https://referencesource.microsoft.com/#System/net/System/Net/SecureProtocols/SslEnumTypes.cs,bfabf9fcb928e856) for more details# Note about the machine doing the query
If _your_ machine does not support Tls1.3 then the test will show "Tls13 is not supported" and this is true because _your_ machine cannot connect to it.